public final class DateAxis extends ChartAxis
Modifier and Type | Method and Description |
---|---|
AxisType |
getAxisType()
Gets the axis type for
DateAxis which is AxisType.DATE . |
Optional<TimeUnit> |
getBaseUnit()
Gets the smallest time unit that is represented on the date axis or
Optional.empty() if value should be automatically calculated based on chart's data. |
TimeUnit |
getMajorTimeUnit()
Gets the time unit for
major tick marks . |
Optional<Double> |
getMajorUnit()
Gets the distance between major ticks or
Optional.empty() if value should be automatically calculated based on chart's data. |
Optional<LocalDateTime> |
getMaximum()
Gets the maximum value of the axis or
Optional.empty() if value should be automatically calculated based on chart's data. |
Optional<LocalDateTime> |
getMinimum()
Gets the minimum value of the axis or
Optional.empty() if value should be automatically calculated based on chart's data. |
TimeUnit |
getMinorTimeUnit()
Gets the time unit for
minor tick marks . |
Optional<Double> |
getMinorUnit()
Gets the distance between minor ticks or
Optional.empty() if value should be automatically calculated based on chart's data. |
void |
setBaseUnit(Optional<TimeUnit> baseUnit)
Sets the smallest time unit that is represented on the date axis or
Optional.empty() if value should be automatically calculated based on chart's data. |
void |
setMajorTimeUnit(TimeUnit timeUnit)
Sets the time unit for
major tick marks . |
void |
setMajorUnit(Optional<Double> majorUnit)
Sets the distance between major ticks or
Optional.empty() if value should be automatically calculated based on chart's data. |
void |
setMaximum(Optional<LocalDateTime> maximum)
Sets or sets the maximum value of the axis or
Optional.empty() if value should be automatically calculated based on chart's data. |
void |
setMinimum(Optional<LocalDateTime> minimum)
Sets the minimum value of the axis or
Optional.empty() if value should be automatically calculated based on chart's data. |
void |
setMinorTimeUnit(TimeUnit timeUnit)
Sets the time unit for
minor tick marks . |
void |
setMinorUnit(Optional<Double> minorUnit)
Sets the distance between minor ticks or
Optional.empty() if value should be automatically calculated based on chart's data. |
changeAxisType, changeAxisType, delete, getLabelsPosition, getMajorGridlines, getMajorTickMarkType, getMinorGridlines, getMinorTickMarkType, getNumberFormat, getTitle, isNumberFormatLinkedToSource, isReverseOrder, isVisible, setLabelsPosition, setMajorTickMarkType, setMinorTickMarkType, setNumberFormat, setNumberFormatLinkedToSource, setReverseOrder, setVisible, toString
public AxisType getAxisType()
DateAxis
which is AxisType.DATE
.getAxisType
in class ChartAxis
AxisType.DATE
value.public Optional<TimeUnit> getBaseUnit()
Optional.empty()
if value should be automatically calculated based on chart's data.Optional.empty()
if value should be automatically calculated based on chart's data.public TimeUnit getMajorTimeUnit()
major tick marks
.public Optional<Double> getMajorUnit()
Optional.empty()
if value should be automatically calculated based on chart's data.Optional.empty()
if value should be automatically calculated based on chart's data.public Optional<LocalDateTime> getMaximum()
Optional.empty()
if value should be automatically calculated based on chart's data.Optional.empty()
if value should be automatically calculated based on chart's data.public Optional<LocalDateTime> getMinimum()
Optional.empty()
if value should be automatically calculated based on chart's data.Optional.empty()
if value should be automatically calculated based on chart's data.public TimeUnit getMinorTimeUnit()
minor tick marks
.public Optional<Double> getMinorUnit()
Optional.empty()
if value should be automatically calculated based on chart's data.Optional.empty()
if value should be automatically calculated based on chart's data.public void setBaseUnit(Optional<TimeUnit> baseUnit)
Optional.empty()
if value should be automatically calculated based on chart's data.baseUnit
- The smallest time unit that is represented on the date axis or Optional.empty()
if value should be automatically calculated based on chart's data.public void setMajorTimeUnit(TimeUnit timeUnit)
major tick marks
.timeUnit
- The time unit for major tick marks.public void setMajorUnit(Optional<Double> majorUnit)
Optional.empty()
if value should be automatically calculated based on chart's data.majorUnit
- The distance between major ticks or Optional.empty()
if value should be automatically calculated based on chart's data.IndexOutOfBoundsException
- Value is not positive number.public void setMaximum(Optional<LocalDateTime> maximum)
Optional.empty()
if value should be automatically calculated based on chart's data.maximum
- The maximum value of the axis or Optional.empty()
if value should be automatically calculated based on chart's data.public void setMinimum(Optional<LocalDateTime> minimum)
Optional.empty()
if value should be automatically calculated based on chart's data.minimum
- The minimum value of the axis or Optional.empty()
if value should be automatically calculated based on chart's data.public void setMinorTimeUnit(TimeUnit timeUnit)
minor tick marks
.timeUnit
- The time unit for minor tick marks.public void setMinorUnit(Optional<Double> minorUnit)
Optional.empty()
if value should be automatically calculated based on chart's data.minorUnit
- The distance between minor ticks or Optional.empty()
if value should be automatically calculated based on chart's data.IndexOutOfBoundsException
- Value is not positive number.© GemBox d.o.o. — All rights reserved.