public final class Time extends AbstractModel<Scale,IsDefaultTime> implements IsDefaultTime
| Modifier and Type | Method and Description |
|---|---|
DisplayFormats |
getDisplayFormats()
Returns the displayFormats element.
|
Date |
getMax()
If defined, this will override the data maximum.
|
Date |
getMin()
If defined, this will override the data minimum.
|
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 moment to parse the date.
|
TimeUnit |
getRound()
If defined, dates will be rounded to the start of this unit.
|
int |
getStepSize()
The number of units between grid lines.
|
String |
getTooltipFormat()
The format string to use for the tooltip.
|
TimeUnit |
getUnit()
If defined, will force the unit to be a certain type.
|
boolean |
isIsoWeekday()
If
true and the unit is set to 'week', then the first day of the week will be Monday. |
void |
setIsoWeekday(boolean isoWeekday)
If
true and the unit is set to 'week', then the first day of the week will be Monday. |
void |
setMax(Date max)
If defined, this will override the data maximum.
|
void |
setMin(Date min)
If defined, this will override the data minimum.
|
void |
setMinUnit(TimeUnit unit)
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 moment 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(int stepSize)
The number of units between grid lines.
|
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.
|
checkAndAddToParent, getChildKey, getDefaultValues, getParent, setCallbackToModel, setEventToModelgetArrayValue, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, keys, remove, remove, removeIfExists, setArrayValue, setArrayValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, typepublic DisplayFormats getDisplayFormats()
public void setIsoWeekday(boolean isoWeekday)
true and the unit is set to 'week', then the first day of the week will be Monday. Otherwise, it will be
Sunday.isoWeekday - if true and the unit is set to 'week', then the first day of the week will be Monday.
Otherwise, it will be Sunday.public boolean isIsoWeekday()
true and the unit is set to 'week', then the first day of the week will be Monday. Otherwise, it will be
Sunday.isIsoWeekday in interface IsDefaultTimetrue and the unit is set to 'week', then the first day of the week will be Monday. Otherwise, it
will be Sunday.public void setMax(Date max)
max - if defined, this will override the data maximum.public Date getMax()
getMax in interface IsDefaultTimepublic void setMin(Date min)
min - if defined, this will override the data minimum.public Date getMin()
getMin in interface IsDefaultTimepublic 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 IsDefaultTimepublic void setTooltipFormat(String tooltipFormat)
tooltipFormat - format string to use for the tooltip.public String getTooltipFormat()
getTooltipFormat in interface IsDefaultTimepublic 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 IsDefaultTimepublic void setStepSize(int stepSize)
stepSize - number of units between grid lines.public int getStepSize()
getStepSize in interface IsDefaultTimepublic void setMinUnit(TimeUnit unit)
unit - minimum display format to be used for a time unit.public TimeUnit getMinUnit()
getMinUnit in interface IsDefaultTimepublic void setParser(String parser)
parser - defined as a string, it is interpreted as a custom format to be used by moment to parse the date.public String getParser()
getParser in interface IsDefaultTime