Class DefaultTime
- java.lang.Object
-
- org.pepstock.charba.client.defaults.globals.DefaultTime
-
- All Implemented Interfaces:
IsDefaultTime
public class DefaultTime extends Object implements IsDefaultTime
CHART.JS default values for TIME element.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IsoWeekDaygetIsoWeekday()Returns the ISO day of the week with 0 being Sunday and 6 being Saturday.TimeUnitgetMinUnit()The minimum display format to be used for a time unit.StringgetParser()Defined as a string, it is interpreted as a custom format to be used by LUXON to parse the date.TimeUnitgetRound()If defined, dates will be rounded to the start of this unit.doublegetStepSize()The number of units between grid.StringgetTooltipFormat()The date format string to use for the tooltip.TimeUnitgetUnit()If defined, will force the unit to be a certain type.
-
-
-
Method Detail
-
getIsoWeekday
public IsoWeekDay getIsoWeekday()
Description copied from interface:IsDefaultTimeReturns the ISO day of the week with 0 being Sunday and 6 being Saturday.- Specified by:
getIsoWeekdayin interfaceIsDefaultTime- Returns:
- ISO day of the week with 0 being Sunday and 6 being Saturday
-
getRound
public TimeUnit getRound()
Description copied from interface:IsDefaultTimeIf defined, dates will be rounded to the start of this unit.- Specified by:
getRoundin interfaceIsDefaultTime- Returns:
- If defined, dates will be rounded to the start of this unit.
-
getTooltipFormat
public String getTooltipFormat()
Description copied from interface:IsDefaultTimeThe date format string to use for the tooltip.- Specified by:
getTooltipFormatin interfaceIsDefaultTime- Returns:
- date format string to use for the tooltip.
-
getUnit
public TimeUnit getUnit()
Description copied from interface:IsDefaultTimeIf defined, will force the unit to be a certain type.- Specified by:
getUnitin interfaceIsDefaultTime- Returns:
- If defined, will force the unit to be a certain type.
-
getStepSize
public double getStepSize()
Description copied from interface:IsDefaultTimeThe number of units between grid.- Specified by:
getStepSizein interfaceIsDefaultTime- Returns:
- The number of units between grid.
-
getMinUnit
public TimeUnit getMinUnit()
Description copied from interface:IsDefaultTimeThe minimum display format to be used for a time unit.- Specified by:
getMinUnitin interfaceIsDefaultTime- Returns:
- The minimum display format to be used for a time unit.
-
getParser
public String getParser()
Description copied from interface:IsDefaultTimeDefined as a string, it is interpreted as a custom format to be used by LUXON to parse the date.- Specified by:
getParserin interfaceIsDefaultTime- Returns:
- Defined as a string, it is interpreted as a custom format to be used by LUXON to parse the date.
-
-