public class Time extends ChartContainer
| Modifier and Type | Method and Description |
|---|---|
DisplayFormats |
getDisplayFormats() |
java.util.Date |
getMax()
If defined, this will override the data maximum.
|
java.util.Date |
getMin()
If defined, this will override the data minimum.
|
TimeUnit |
getMinUnit()
The minimum display format to be used for a time unit.
|
java.lang.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.
|
java.lang.String |
getTooltipFormat()
The moment js 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.
|
int |
isStepSize()
The number of units between grid lines.
|
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(java.util.Date max)
If defined, this will override the data maximum.
|
void |
setMin(java.util.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(java.lang.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(java.lang.String tooltipFormat)
The moment js 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.
|
getChartcheckAndGetDoubleValues, checkAndGetEnumValues, checkAndGetIntegerValues, checkAndGetStringValues, checkAndSetDoubleValues, checkAndSetEnumValues, checkAndSetIntegerValues, checkAndSetStringValues, getDoubleArray, getIntegerArray, getJavaScriptObject, getObjectArray, getStringArray, getValue, getValue, getValue, getValue, getValue, getValue, getValue, has, has, hasToBeRegistered, isEmpty, keys, remove, remove, removeIfExists, setDoubleArray, setEnumValueArray, setIntegerArray, setObjectArray, setStringArray, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, typepublic DisplayFormats getDisplayFormats()
public void setIsoWeekday(boolean isoWeekday)
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.public void setMax(java.util.Date max)
max - If defined, this will override the data maximum.public java.util.Date getMax()
null.public void setMin(java.util.Date min)
min - If defined, this will override the data minimum.public java.util.Date getMin()
null.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.TimeUnitpublic TimeUnit getRound()
null.TimeUnitpublic void setTooltipFormat(java.lang.String tooltipFormat)
tooltipFormat - The moment js format string to use for the tooltip.public java.lang.String getTooltipFormat()
null.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.TimeUnitpublic TimeUnit getUnit()
null.TimeUnitpublic void setStepSize(int stepSize)
stepSize - The number of units between grid lines.public int isStepSize()
1.public void setMinUnit(TimeUnit unit)
unit - The minimum display format to be used for a time unit.TimeUnitpublic TimeUnit getMinUnit()
TimeUnit.millisecond.TimeUnitpublic void setParser(java.lang.String parser)
parser - Defined as a string, it is interpreted as a custom format to be used by moment to parse the date.public java.lang.String getParser()
null.