Uses of Class
org.pepstock.charba.client.enums.TimeUnit
-
Packages that use TimeUnit Package Description org.pepstock.charba.client.adapters Contains all classes to interact with date adapters implemented by CHART.JS to be abstract from date time java script library to use.org.pepstock.charba.client.configuration Contains all elements to configure a chart instance (know as chart options at instance level).org.pepstock.charba.client.defaults Contains all interfaces need to provide defaults values of the chart options.org.pepstock.charba.client.defaults.chart Contains the default values of chart options based on type of chart instance.org.pepstock.charba.client.defaults.globals Contains the default values of chart options for all chart types (CHART.JS options defaults).org.pepstock.charba.client.enums Contains all enumerations of some chart options where only a specific set of values can be set.org.pepstock.charba.client.options Contains all elements to configure charts at global level (know as chart global options). -
-
Uses of TimeUnit in org.pepstock.charba.client.adapters
Methods in org.pepstock.charba.client.adapters with parameters of type TimeUnit Modifier and Type Method Description Date
DateAdapter. add(long time, long amount, TimeUnit unit)
Adds the specified amount of unit to the given timestamp.Date
DateAdapter. add(Date time, long amount, TimeUnit unit)
Adds the specified amount of unit to the given date.double
DateAdapter. diff(long maxTime, long minTime, TimeUnit unit)
Returns the number of unit between the given timestamps.double
DateAdapter. diff(Date maxTime, Date minTime, TimeUnit unit)
Returns the number of unit between the given dates.Date
DateAdapter. endOf(long time, TimeUnit unit)
Returns end of unit for the given timestamp.Date
DateAdapter. endOf(Date time, TimeUnit unit)
Returns end of unit for the given date.String
DateAdapter. format(long time, TimeUnit unit)
Returns the formatted date in the specified format for a given timestamp, using the default format related to time unit.String
DateAdapter. format(Date time, TimeUnit unit)
Returns the formatted date in the specified format for a given date, using the default format related to time unit.String
DateAdapterFormats. getFormat(TimeUnit unit)
Date
DateAdapter. startOf(long time, TimeUnit unit)
Returns the start of unit for the given timestamp.Date
DateAdapter. startOf(Date time, TimeUnit unit)
Returns the start of unit for the given date. -
Uses of TimeUnit in org.pepstock.charba.client.configuration
Methods in org.pepstock.charba.client.configuration that return TimeUnit Modifier and Type Method Description TimeUnit
Time. getMinUnit()
The minimum display format to be used for a time unit.TimeUnit
Time. getRound()
If defined, dates will be rounded to the start of this unit.TimeUnit
Time. getUnit()
If defined, will force the unit to be a certain type.Methods in org.pepstock.charba.client.configuration with parameters of type TimeUnit Modifier and Type Method Description String
DisplayFormats. getDisplayFormat(TimeUnit unit)
Returns the display formats are used to configure how different time units are formed in the strings for the axis tick marks.void
DisplayFormats. setDisplayFormat(TimeUnit unit, String format)
Sets the display formats are used to configure how different time units are formed in the strings for the axis tick marks.void
Time. setMinUnit(TimeUnit unit)
The minimum display format to be used for a time unit.void
Time. setRound(TimeUnit round)
If defined, dates will be rounded to the start of this unit.void
Time. setUnit(TimeUnit unit)
If defined, will force the unit to be a certain type. -
Uses of TimeUnit in org.pepstock.charba.client.defaults
Methods in org.pepstock.charba.client.defaults that return TimeUnit Modifier and Type Method Description TimeUnit
IsDefaultTime. getMinUnit()
The minimum display format to be used for a time unit.TimeUnit
IsDefaultTime. getRound()
If defined, dates will be rounded to the start of this unit.TimeUnit
IsDefaultTime. getUnit()
If defined, will force the unit to be a certain type. -
Uses of TimeUnit in org.pepstock.charba.client.defaults.chart
Methods in org.pepstock.charba.client.defaults.chart that return TimeUnit Modifier and Type Method Description TimeUnit
DefaultChartTime. getMinUnit()
TimeUnit
DefaultChartTime. getRound()
TimeUnit
DefaultChartTime. getUnit()
-
Uses of TimeUnit in org.pepstock.charba.client.defaults.globals
Methods in org.pepstock.charba.client.defaults.globals that return TimeUnit Modifier and Type Method Description TimeUnit
DefaultTime. getMinUnit()
TimeUnit
DefaultTime. getRound()
TimeUnit
DefaultTime. getUnit()
-
Uses of TimeUnit in org.pepstock.charba.client.enums
Methods in org.pepstock.charba.client.enums that return TimeUnit Modifier and Type Method Description static TimeUnit
TimeUnit. valueOf(String name)
Returns the enum constant of this type with the specified name.static TimeUnit[]
TimeUnit. values()
Returns an array containing the constants of this enum type, in the order they are declared. -
Uses of TimeUnit in org.pepstock.charba.client.options
Methods in org.pepstock.charba.client.options that return TimeUnit Modifier and Type Method Description TimeUnit
Time. getMinUnit()
Returns the minimum display format to be used for a time unit.TimeUnit
Time. getRound()
If defined, dates will be rounded to the start of this unit.TimeUnit
Time. getUnit()
If defined, will force the unit to be a certain type.Methods in org.pepstock.charba.client.options with parameters of type TimeUnit Modifier and Type Method Description String
DisplayFormats. getDisplayFormat(TimeUnit unit)
Returns the display formats are used to configure how different time units are formed in the strings for the axis tick marks.void
DisplayFormats. setDisplayFormat(TimeUnit unit, String format)
Sets the display formats are used to configure how different time units are formed in the strings for the axis tick marks.void
Time. setMinUnit(TimeUnit unit)
Sets the minimum display format to be used for a time unit.void
Time. setRound(TimeUnit round)
If defined, dates will be rounded to the start of this unit.void
Time. setUnit(TimeUnit unit)
If defined, will force the unit to be a certain type.
-