public class Time extends Object
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 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.
|
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 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.
|
public 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()
public void setMax(Date max)
max
- If defined, this will override the data maximum.public Date getMax()
public void setMin(Date min)
min
- If defined, this will override the data minimum.public Date getMin()
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()
public void setTooltipFormat(String tooltipFormat)
tooltipFormat
- The moment js format string to use for the tooltip.public String getTooltipFormat()
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()
public void setStepSize(int stepSize)
stepSize
- The number of units between grid lines.public int getStepSize()
public void setMinUnit(TimeUnit unit)
unit
- The minimum display format to be used for a time unit.public TimeUnit getMinUnit()
public 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()