Class Time
- java.lang.Object
- 
- org.pepstock.charba.client.commons.NativeObjectContainer
- 
- org.pepstock.charba.client.commons.AbstractNode
- 
- org.pepstock.charba.client.options.AbstractModel<AbstractScale,IsDefaultTime>
- 
- org.pepstock.charba.client.options.Time
 
 
 
 
- 
- All Implemented Interfaces:
- IsDefaultTime
 
 public final class Time extends AbstractModel<AbstractScale,IsDefaultTime> implements IsDefaultTime The time configuration is used to configure how time and time series axes must configure the tick marks.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description DisplayFormatsgetDisplayFormats()Returns the displayFormats element.IsoWeekDaygetIsoWeekday()Returns the ISO day of the week with 0 being Sunday and 6 being Saturday.TimeUnitgetMinUnit()Returns 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 format string to use for the tooltip.TimeUnitgetUnit()If defined, will force the unit to be a certain type.voidsetIsoWeekday(IsoWeekDay isoWeekday)Sets the ISO day of the week.voidsetMinUnit(TimeUnit unit)Sets the minimum display format to be used for a time unit.voidsetParser(String parser)Defined as a string, it is interpreted as a custom format to be used by LUXON to parse the date.voidsetRound(boolean round)If defined, dates will be rounded to the start of this unit.voidsetRound(TimeUnit round)If defined, dates will be rounded to the start of this unit.voidsetStepSize(double stepSize)The number of units between grid.voidsetTooltipFormat(String tooltipFormat)The format string to use for the tooltip.voidsetUnit(boolean unit)If defined, will force the unit to be a certain type.voidsetUnit(TimeUnit unit)If defined, will force the unit to be a certain type.- 
Methods inherited from class org.pepstock.charba.client.options.AbstractModelgetDefaultValues, getParent, loadPadding, setCallbackToModel, setCallbackToModel, setEventToModel
 - 
Methods inherited from class org.pepstock.charba.client.commons.AbstractNodecheckAndAddToParent, getChildKey, getParentNode, getRootNode, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent
 - 
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainercheckDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
 
- 
 
- 
- 
- 
Method Detail- 
getDisplayFormatspublic DisplayFormats getDisplayFormats() Returns the displayFormats element.- Returns:
- the displayFormats
 
 - 
setIsoWeekdaypublic void setIsoWeekday(IsoWeekDay isoWeekday) Sets the ISO day of the week.- Parameters:
- isoWeekday- ISO day of the week
 
 - 
getIsoWeekdaypublic IsoWeekDay getIsoWeekday() Returns the ISO day of the week with 0 being Sunday and 6 being Saturday.- Specified by:
- getIsoWeekdayin interface- IsDefaultTime
- Returns:
- ISO day of the week with 0 being Sunday and 6 being Saturday
 
 - 
setRoundpublic void setRound(boolean round) If defined, dates will be rounded to the start of this unit.- Parameters:
- round- if defined, this will override the data minimum.
 
 - 
setRoundpublic void setRound(TimeUnit round) If defined, dates will be rounded to the start of this unit.- Parameters:
- round- if defined, this will override the data minimum.
 
 - 
getRoundpublic TimeUnit getRound() If defined, dates will be rounded to the start of this unit.- Specified by:
- getRoundin interface- IsDefaultTime
- Returns:
- if defined, dates will be rounded to the start of this unit.
 
 - 
setTooltipFormatpublic void setTooltipFormat(String tooltipFormat) The format string to use for the tooltip.- Parameters:
- tooltipFormat- format string to use for the tooltip.
 
 - 
getTooltipFormatpublic String getTooltipFormat() The format string to use for the tooltip.- Specified by:
- getTooltipFormatin interface- IsDefaultTime
- Returns:
- the format string to use for the tooltip.
 
 - 
setUnitpublic void setUnit(boolean unit) If defined, will force the unit to be a certain type.- Parameters:
- unit- If defined, will force the unit to be a certain type.
 
 - 
setUnitpublic void setUnit(TimeUnit unit) If defined, will force the unit to be a certain type.- Parameters:
- unit- if defined, will force the unit to be a certain type.
 
 - 
getUnitpublic TimeUnit getUnit() If defined, will force the unit to be a certain type.- Specified by:
- getUnitin interface- IsDefaultTime
- Returns:
- if defined, will force the unit to be a certain type.
 
 - 
setStepSizepublic void setStepSize(double stepSize) The number of units between grid.- Parameters:
- stepSize- number of units between grid.
 
 - 
getStepSizepublic double getStepSize() The number of units between grid.- Specified by:
- getStepSizein interface- IsDefaultTime
- Returns:
- number of units between grid.
 
 - 
setMinUnitpublic void setMinUnit(TimeUnit unit) Sets the minimum display format to be used for a time unit.- Parameters:
- unit- minimum display format to be used for a time unit.
 
 - 
getMinUnitpublic TimeUnit getMinUnit() Returns the minimum display format to be used for a time unit.- Specified by:
- getMinUnitin interface- IsDefaultTime
- Returns:
- minimum display format to be used for a time unit.
 
 - 
setParserpublic void setParser(String parser) Defined as a string, it is interpreted as a custom format to be used by LUXON to parse the date.- Parameters:
- parser- defined as a string, it is interpreted as a custom format to be used by LUXON to parse the date.
 
 - 
getParserpublic String getParser() Defined as a string, it is interpreted as a custom format to be used by LUXON to parse the date.- Specified by:
- getParserin interface- IsDefaultTime
- Returns:
- defined as a string, it is interpreted as a custom format to be used by LUXON to parse the date.
 
 
- 
 
-