@Beta public interface ChartAxis
Modifier and Type | Method and Description |
---|---|
void |
crossAxis(ChartAxis axis)
Declare this axis cross another axis.
|
AxisCrosses |
getCrosses() |
long |
getId() |
double |
getLogBase() |
AxisTickMark |
getMajorTickMark() |
double |
getMaximum() |
double |
getMinimum() |
AxisTickMark |
getMinorTickMark() |
java.lang.String |
getNumberFormat() |
AxisOrientation |
getOrientation() |
AxisPosition |
getPosition() |
boolean |
hasNumberFormat()
Use this to check before retrieving a number format, as calling
getNumberFormat() may create a default one if none exists. |
boolean |
isSetLogBase() |
boolean |
isSetMaximum() |
boolean |
isSetMinimum() |
boolean |
isVisible() |
void |
setCrosses(AxisCrosses crosses) |
void |
setLogBase(double logBase) |
void |
setMajorTickMark(AxisTickMark tickMark) |
void |
setMaximum(double max) |
void |
setMinimum(double min) |
void |
setMinorTickMark(AxisTickMark tickMark) |
void |
setNumberFormat(java.lang.String format) |
void |
setOrientation(AxisOrientation orientation) |
void |
setPosition(AxisPosition position) |
void |
setVisible(boolean value) |
long getId()
AxisPosition getPosition()
void setPosition(AxisPosition position)
position
- new axis positionjava.lang.String getNumberFormat()
void setNumberFormat(java.lang.String format)
format
- axis number formatboolean isSetLogBase()
void setLogBase(double logBase)
logBase
- a number between 2 and 1000 (inclusive)java.lang.IllegalArgumentException
- if log base not within allowed rangedouble getLogBase()
boolean isSetMinimum()
double getMinimum()
void setMinimum(double min)
min
- axis minimumboolean isSetMaximum()
double getMaximum()
void setMaximum(double max)
max
- axis maximumAxisOrientation getOrientation()
void setOrientation(AxisOrientation orientation)
orientation
- axis orientationvoid setCrosses(AxisCrosses crosses)
crosses
- axis cross typeAxisCrosses getCrosses()
void crossAxis(ChartAxis axis)
axis
- that this axis should crossboolean isVisible()
void setVisible(boolean value)
value
- visibility of the axis.AxisTickMark getMajorTickMark()
void setMajorTickMark(AxisTickMark tickMark)
tickMark
- major tick mark type.AxisTickMark getMinorTickMark()
void setMinorTickMark(AxisTickMark tickMark)
tickMark
- minor tick mark type.boolean hasNumberFormat()
getNumberFormat()
may create a default one if none exists.Copyright 2018 The Apache Software Foundation or its licensors, as applicable.