Class XDDFSeriesAxis
- java.lang.Object
-
- org.apache.poi.xddf.usermodel.chart.XDDFChartAxis
-
- org.apache.poi.xddf.usermodel.chart.XDDFSeriesAxis
-
- All Implemented Interfaces:
HasShapeProperties
@Beta public class XDDFSeriesAxis extends XDDFChartAxis
-
-
Constructor Summary
Constructors Constructor Description XDDFSeriesAxis(org.openxmlformats.schemas.drawingml.x2006.chart.CTPlotArea plotArea, AxisPosition position)
XDDFSeriesAxis(org.openxmlformats.schemas.drawingml.x2006.chart.CTSerAx ctSerAx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
crossAxis(XDDFChartAxis axis)
Declare this axis cross another axis.protected org.openxmlformats.schemas.drawingml.x2006.chart.CTUnsignedInt
getCTAxId()
protected org.openxmlformats.schemas.drawingml.x2006.chart.CTAxPos
getCTAxPos()
protected org.openxmlformats.schemas.drawingml.x2006.chart.CTCrosses
getCTCrosses()
protected org.openxmlformats.schemas.drawingml.x2006.chart.CTNumFmt
getCTNumFmt()
protected org.openxmlformats.schemas.drawingml.x2006.chart.CTScaling
getCTScaling()
protected org.openxmlformats.schemas.drawingml.x2006.chart.CTBoolean
getDelete()
protected org.openxmlformats.schemas.drawingml.x2006.chart.CTTickMark
getMajorCTTickMark()
double
getMajorUnit()
protected org.openxmlformats.schemas.drawingml.x2006.chart.CTTickMark
getMinorCTTickMark()
double
getMinorUnit()
XDDFShapeProperties
getOrAddMajorGridProperties()
XDDFShapeProperties
getOrAddMinorGridProperties()
XDDFShapeProperties
getOrAddShapeProperties()
boolean
hasNumberFormat()
Use this to check before retrieving a number format, as callingXDDFChartAxis.getNumberFormat()
may create a default one if none exists.boolean
isSetMajorUnit()
boolean
isSetMinorUnit()
void
setMajorUnit(double major)
void
setMinorUnit(double minor)
void
setTitle(java.lang.String text)
-
Methods inherited from class org.apache.poi.xddf.usermodel.chart.XDDFChartAxis
getCrosses, getId, getLogBase, getMajorTickMark, getMaximum, getMinimum, getMinorTickMark, getNextAxId, getNumberFormat, getOrAddLinesProperties, getOrientation, getPosition, isSetLogBase, isSetMaximum, isSetMinimum, isVisible, setCrosses, setLogBase, setMajorTickMark, setMaximum, setMinimum, setMinorTickMark, setNumberFormat, setOrientation, setPosition, setVisible
-
-
-
-
Constructor Detail
-
XDDFSeriesAxis
public XDDFSeriesAxis(org.openxmlformats.schemas.drawingml.x2006.chart.CTPlotArea plotArea, AxisPosition position)
-
XDDFSeriesAxis
public XDDFSeriesAxis(org.openxmlformats.schemas.drawingml.x2006.chart.CTSerAx ctSerAx)
-
-
Method Detail
-
getOrAddMajorGridProperties
public XDDFShapeProperties getOrAddMajorGridProperties()
- Specified by:
getOrAddMajorGridProperties
in classXDDFChartAxis
-
getOrAddMinorGridProperties
public XDDFShapeProperties getOrAddMinorGridProperties()
- Specified by:
getOrAddMinorGridProperties
in classXDDFChartAxis
-
getOrAddShapeProperties
public XDDFShapeProperties getOrAddShapeProperties()
-
setTitle
public void setTitle(java.lang.String text)
- Specified by:
setTitle
in classXDDFChartAxis
- Since:
- 4.0.1
-
isSetMinorUnit
public boolean isSetMinorUnit()
- Specified by:
isSetMinorUnit
in classXDDFChartAxis
- Returns:
- true if minor unit value is defined, false otherwise
-
setMinorUnit
public void setMinorUnit(double minor)
- Specified by:
setMinorUnit
in classXDDFChartAxis
- Parameters:
minor
- axis minor unit
-
getMinorUnit
public double getMinorUnit()
- Specified by:
getMinorUnit
in classXDDFChartAxis
- Returns:
- axis minor unit or NaN if not set
-
isSetMajorUnit
public boolean isSetMajorUnit()
- Specified by:
isSetMajorUnit
in classXDDFChartAxis
- Returns:
- true if major unit value is defined, false otherwise
-
setMajorUnit
public void setMajorUnit(double major)
- Specified by:
setMajorUnit
in classXDDFChartAxis
- Parameters:
major
- axis major unit
-
getMajorUnit
public double getMajorUnit()
- Specified by:
getMajorUnit
in classXDDFChartAxis
- Returns:
- axis major unit or NaN if not set
-
crossAxis
public void crossAxis(XDDFChartAxis axis)
Description copied from class:XDDFChartAxis
Declare this axis cross another axis.- Specified by:
crossAxis
in classXDDFChartAxis
- Parameters:
axis
- that this axis should cross
-
getCTAxId
protected org.openxmlformats.schemas.drawingml.x2006.chart.CTUnsignedInt getCTAxId()
- Specified by:
getCTAxId
in classXDDFChartAxis
-
getCTAxPos
protected org.openxmlformats.schemas.drawingml.x2006.chart.CTAxPos getCTAxPos()
- Specified by:
getCTAxPos
in classXDDFChartAxis
-
hasNumberFormat
public boolean hasNumberFormat()
Description copied from class:XDDFChartAxis
Use this to check before retrieving a number format, as callingXDDFChartAxis.getNumberFormat()
may create a default one if none exists.- Specified by:
hasNumberFormat
in classXDDFChartAxis
- Returns:
- true if a number format element is defined, false if not
-
getCTNumFmt
protected org.openxmlformats.schemas.drawingml.x2006.chart.CTNumFmt getCTNumFmt()
- Specified by:
getCTNumFmt
in classXDDFChartAxis
-
getCTScaling
protected org.openxmlformats.schemas.drawingml.x2006.chart.CTScaling getCTScaling()
- Specified by:
getCTScaling
in classXDDFChartAxis
-
getCTCrosses
protected org.openxmlformats.schemas.drawingml.x2006.chart.CTCrosses getCTCrosses()
- Specified by:
getCTCrosses
in classXDDFChartAxis
-
getDelete
protected org.openxmlformats.schemas.drawingml.x2006.chart.CTBoolean getDelete()
- Specified by:
getDelete
in classXDDFChartAxis
-
getMajorCTTickMark
protected org.openxmlformats.schemas.drawingml.x2006.chart.CTTickMark getMajorCTTickMark()
- Specified by:
getMajorCTTickMark
in classXDDFChartAxis
-
getMinorCTTickMark
protected org.openxmlformats.schemas.drawingml.x2006.chart.CTTickMark getMinorCTTickMark()
- Specified by:
getMinorCTTickMark
in classXDDFChartAxis
-
-