public final class Time extends AbstractModel<AbstractScale,IsDefaultTime> implements IsDefaultTime
Modifier and Type | Method and Description |
---|---|
DisplayFormats |
getDisplayFormats()
Returns the displayFormats element.
|
IsoWeekDay |
getIsoWeekday()
Returns the ISO day of the week with 0 being Sunday and 6 being Saturday.
|
TimeUnit |
getMinUnit()
Returns 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 format string to use for the tooltip.
|
TimeUnit |
getUnit()
If defined, will force the unit to be a certain type.
|
void |
setIsoWeekday(IsoWeekDay isoWeekday)
Sets the ISO day of the week.
|
void |
setMinUnit(TimeUnit unit)
Sets the minimum display format to be used for a time unit.
|
void |
setParser(String parser)
Defined as a string, it is interpreted as a custom format to be used by LUXON to parse the date.
|
void |
setRound(boolean round)
If defined, dates will be rounded to the start of this unit.
|
void |
setRound(TimeUnit round)
If defined, dates will be rounded to the start of this unit.
|
void |
setStepSize(double stepSize)
The number of units between grid.
|
void |
setTooltipFormat(String tooltipFormat)
The format string to use for the tooltip.
|
void |
setUnit(boolean unit)
If defined, will force the unit to be a certain type.
|
void |
setUnit(TimeUnit unit)
If defined, will force the unit to be a certain type.
|
getDefaultValues, getParent, loadPadding, setCallbackToModel, setCallbackToModel, setEventToModel
checkAndAddToParent, 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
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, 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
public DisplayFormats getDisplayFormats()
public void setIsoWeekday(IsoWeekDay isoWeekday)
isoWeekday
- ISO day of the weekpublic IsoWeekDay getIsoWeekday()
getIsoWeekday
in interface IsDefaultTime
public void setRound(boolean round)
round
- if defined, this will override the data minimum.public void setRound(TimeUnit round)
round
- if defined, this will override the data minimum.public TimeUnit getRound()
getRound
in interface IsDefaultTime
public void setTooltipFormat(String tooltipFormat)
tooltipFormat
- format string to use for the tooltip.public String getTooltipFormat()
getTooltipFormat
in interface IsDefaultTime
public void setUnit(boolean unit)
unit
- If defined, will force the unit to be a certain type.public void setUnit(TimeUnit unit)
unit
- if defined, will force the unit to be a certain type.public TimeUnit getUnit()
getUnit
in interface IsDefaultTime
public void setStepSize(double stepSize)
stepSize
- number of units between grid.public double getStepSize()
getStepSize
in interface IsDefaultTime
public void setMinUnit(TimeUnit unit)
unit
- minimum display format to be used for a time unit.public TimeUnit getMinUnit()
getMinUnit
in interface IsDefaultTime
public void setParser(String parser)
parser
- defined as a string, it is interpreted as a custom format to be used by LUXON to parse the date.public String getParser()
getParser
in interface IsDefaultTime