Class DefaultChartTime
- java.lang.Object
-
- org.pepstock.charba.client.defaults.chart.DefaultChartTime
-
- All Implemented Interfaces:
IsDefaultTime
public final class DefaultChartTime extends Object implements IsDefaultTime
Defaults for time option element, based on chart type.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IsoWeekDay
getIsoWeekday()
Returns the ISO day of the week with 0 being Sunday and 6 being Saturday.TimeUnit
getMinUnit()
The minimum display format to be used for a time unit.String
getParser()
Defined as a string, it is interpreted as a custom format to be used by LUXON to parse the date.TimeUnit
getRound()
If defined, dates will be rounded to the start of this unit.double
getStepSize()
The number of units between grid.String
getTooltipFormat()
The date format string to use for the tooltip.TimeUnit
getUnit()
If defined, will force the unit to be a certain type.
-
-
-
Method Detail
-
getIsoWeekday
public IsoWeekDay getIsoWeekday()
Description copied from interface:IsDefaultTime
Returns the ISO day of the week with 0 being Sunday and 6 being Saturday.- Specified by:
getIsoWeekday
in interfaceIsDefaultTime
- Returns:
- ISO day of the week with 0 being Sunday and 6 being Saturday
-
getRound
public TimeUnit getRound()
Description copied from interface:IsDefaultTime
If defined, dates will be rounded to the start of this unit.- Specified by:
getRound
in interfaceIsDefaultTime
- Returns:
- If defined, dates will be rounded to the start of this unit.
-
getTooltipFormat
public String getTooltipFormat()
Description copied from interface:IsDefaultTime
The date format string to use for the tooltip.- Specified by:
getTooltipFormat
in interfaceIsDefaultTime
- Returns:
- date format string to use for the tooltip.
-
getUnit
public TimeUnit getUnit()
Description copied from interface:IsDefaultTime
If defined, will force the unit to be a certain type.- Specified by:
getUnit
in interfaceIsDefaultTime
- Returns:
- If defined, will force the unit to be a certain type.
-
getStepSize
public double getStepSize()
Description copied from interface:IsDefaultTime
The number of units between grid.- Specified by:
getStepSize
in interfaceIsDefaultTime
- Returns:
- The number of units between grid.
-
getMinUnit
public TimeUnit getMinUnit()
Description copied from interface:IsDefaultTime
The minimum display format to be used for a time unit.- Specified by:
getMinUnit
in interfaceIsDefaultTime
- Returns:
- The minimum display format to be used for a time unit.
-
getParser
public String getParser()
Description copied from interface:IsDefaultTime
Defined as a string, it is interpreted as a custom format to be used by LUXON to parse the date.- Specified by:
getParser
in interfaceIsDefaultTime
- Returns:
- Defined as a string, it is interpreted as a custom format to be used by LUXON to parse the date.
-
-