public final class CategoryAxis extends ChartAxis
Modifier and Type | Method and Description |
---|---|
AxisType |
getAxisType()
Gets the axis type for
CategoryAxis which is AxisType.CATEGORY . |
Optional<Integer> |
getLabelsInterval()
Gets the interval between labels that are drawn.
|
int |
getTickMarksInterval()
Gets the interval between tick marks that are drawn.
|
boolean |
isAxisPositionOnTickMarks()
Gets a value indicating whether the value axis shall cross the category axis at the midpoint of a category or between data markers.
|
void |
setAxisPositionOnTickMarks(boolean value)
Sets a value indicating whether the value axis shall cross the category axis at the midpoint of a category or between data markers.
|
void |
setLabelsInterval(Optional<Integer> interval)
Sets the interval between labels that are drawn.
|
void |
setTickMarksInterval(int interval)
Sets the interval between tick marks that are drawn.
|
changeAxisType, changeAxisType, delete, getLabelsPosition, getMajorGridlines, getMajorTickMarkType, getMinorGridlines, getMinorTickMarkType, getNumberFormat, getTitle, isNumberFormatLinkedToSource, isReverseOrder, isVisible, setLabelsPosition, setMajorTickMarkType, setMinorTickMarkType, setNumberFormat, setNumberFormatLinkedToSource, setReverseOrder, setVisible, toString
public AxisType getAxisType()
CategoryAxis
which is AxisType.CATEGORY
.getAxisType
in class ChartAxis
AxisType.CATEGORY
value.public Optional<Integer> getLabelsInterval()
public int getTickMarksInterval()
Default value of this property is 1.
public boolean isAxisPositionOnTickMarks()
true
if the value axis shall cross the category axis at the midpoint of a category; otherwise, false
if the value axis shall cross the category axis between data markers.public void setAxisPositionOnTickMarks(boolean value)
value
- true
if the value axis shall cross the category axis at the midpoint of a category; otherwise, false
if the value axis shall cross the category axis between data markers.public void setLabelsInterval(Optional<Integer> interval)
interval
- The interval between labels that are drawn.IndexOutOfBoundsException
- Value must be between 1 and 255.public void setTickMarksInterval(int interval)
Default value of this property is 1.
interval
- The interval between tick marks that are drawn.IndexOutOfBoundsException
- Value must be between 1 and 31999.© GemBox d.o.o. — All rights reserved.