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 Summary
All 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.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.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.AbstractModel
getDefaultValues, getParent, loadPadding, setCallbackToModel, setCallbackToModel, setEventToModel
-
Methods inherited from class org.pepstock.charba.client.commons.AbstractNode
checkAndAddToParent, getChildKey, getParentNode, getRootNode, getUpdateListener, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setUpdateListener, setValueAndAddToParent, setValueAndAddToParent, 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.NativeObjectContainer
checkAndGetColor, checkDefaultValuesArgument, 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, 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, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
-
-
-
-
Method Detail
-
getDisplayFormats
public DisplayFormats getDisplayFormats()
Returns the displayFormats element.- Returns:
- the displayFormats
-
setIsoWeekday
public void setIsoWeekday(IsoWeekDay isoWeekday)
Sets the ISO day of the week.- Parameters:
isoWeekday- ISO day of the week
-
getIsoWeekday
public IsoWeekDay getIsoWeekday()
Returns 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
-
setRound
public 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.
-
setRound
public 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.
-
getRound
public TimeUnit getRound()
If 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.
-
setTooltipFormat
public void setTooltipFormat(String tooltipFormat)
The format string to use for the tooltip.- Parameters:
tooltipFormat- format string to use for the tooltip.
-
getTooltipFormat
public String getTooltipFormat()
The format string to use for the tooltip.- Specified by:
getTooltipFormatin interfaceIsDefaultTime- Returns:
- the format string to use for the tooltip.
-
setUnit
public 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.
-
setUnit
public 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.
-
getUnit
public TimeUnit getUnit()
If 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.
-
setMinUnit
public 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.
-
getMinUnit
public TimeUnit getMinUnit()
Returns the minimum display format to be used for a time unit.- Specified by:
getMinUnitin interfaceIsDefaultTime- Returns:
- minimum display format to be used for a time unit.
-
setParser
public 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.
-
getParser
public 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 interfaceIsDefaultTime- Returns:
- defined as a string, it is interpreted as a custom format to be used by LUXON to parse the date.
-
-