public class Time extends Object
Modifier and Type | Method and Description |
---|---|
Axis |
getAxis()
Returns the axis instance.
|
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()
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 LUXON 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)
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 LUXON 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(IsoWeekDay isoWeekday)
isoWeekday
- ISO day of the weekpublic IsoWeekDay getIsoWeekday()
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 LUXON 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(double stepSize)
stepSize
- The number of units between grid.public double 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 LUXON to parse the date.public String getParser()
public final Axis getAxis()