Class XDDFDateAxis
java.lang.Object
org.apache.poi.xddf.usermodel.chart.XDDFChartAxis
org.apache.poi.xddf.usermodel.chart.XDDFDateAxis
- All Implemented Interfaces:
HasShapeProperties
Date axis type. Currently only implements the same values as
XDDFCategoryAxis, since the two are nearly identical.-
Constructor Summary
ConstructorsConstructorDescriptionXDDFDateAxis(org.openxmlformats.schemas.drawingml.x2006.chart.CTDateAx ctDateAx) XDDFDateAxis(org.openxmlformats.schemas.drawingml.x2006.chart.CTPlotArea plotArea, AxisPosition position) -
Method Summary
Modifier and TypeMethodDescriptionvoidcrossAxis(XDDFChartAxis axis) Declare this axis cross another axis.protected org.openxmlformats.schemas.drawingml.x2006.chart.CTUnsignedIntprotected org.openxmlformats.schemas.drawingml.x2006.chart.CTAxPosprotected org.openxmlformats.schemas.drawingml.x2006.chart.CTCrossesprotected org.openxmlformats.schemas.drawingml.x2006.chart.CTNumFmtprotected org.openxmlformats.schemas.drawingml.x2006.chart.CTScalingprotected org.openxmlformats.schemas.drawingml.x2006.chart.CTBooleanprotected org.openxmlformats.schemas.drawingml.x2006.chart.CTTickMarkdoubleprotected org.openxmlformats.schemas.drawingml.x2006.chart.CTTickMarkdoublebooleanUse this to check before retrieving a number format, as callingXDDFChartAxis.getNumberFormat()may create a default one if none exists.booleanbooleanvoidsetMajorUnit(double major) voidsetMinorUnit(double minor) voidMethods 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 Details
-
XDDFDateAxis
public XDDFDateAxis(org.openxmlformats.schemas.drawingml.x2006.chart.CTPlotArea plotArea, AxisPosition position) -
XDDFDateAxis
public XDDFDateAxis(org.openxmlformats.schemas.drawingml.x2006.chart.CTDateAx ctDateAx)
-
-
Method Details
-
getOrAddMajorGridProperties
- Specified by:
getOrAddMajorGridPropertiesin classXDDFChartAxis
-
getOrAddMinorGridProperties
- Specified by:
getOrAddMinorGridPropertiesin classXDDFChartAxis
-
getOrAddShapeProperties
-
setTitle
- Specified by:
setTitlein classXDDFChartAxis- Since:
- 4.0.1
-
isSetMinorUnit
public boolean isSetMinorUnit()- Specified by:
isSetMinorUnitin classXDDFChartAxis- Returns:
- true if minor unit value is defined, false otherwise
-
setMinorUnit
public void setMinorUnit(double minor) - Specified by:
setMinorUnitin classXDDFChartAxis- Parameters:
minor- axis minor unit
-
getMinorUnit
public double getMinorUnit()- Specified by:
getMinorUnitin classXDDFChartAxis- Returns:
- axis minor unit or NaN if not set
-
isSetMajorUnit
public boolean isSetMajorUnit()- Specified by:
isSetMajorUnitin classXDDFChartAxis- Returns:
- true if major unit value is defined, false otherwise
-
setMajorUnit
public void setMajorUnit(double major) - Specified by:
setMajorUnitin classXDDFChartAxis- Parameters:
major- axis major unit
-
getMajorUnit
public double getMajorUnit()- Specified by:
getMajorUnitin classXDDFChartAxis- Returns:
- axis major unit or NaN if not set
-
crossAxis
Description copied from class:XDDFChartAxisDeclare this axis cross another axis.- Specified by:
crossAxisin classXDDFChartAxis- Parameters:
axis- that this axis should cross
-
getCTAxId
protected org.openxmlformats.schemas.drawingml.x2006.chart.CTUnsignedInt getCTAxId()- Specified by:
getCTAxIdin classXDDFChartAxis
-
getCTAxPos
protected org.openxmlformats.schemas.drawingml.x2006.chart.CTAxPos getCTAxPos()- Specified by:
getCTAxPosin classXDDFChartAxis
-
hasNumberFormat
public boolean hasNumberFormat()Description copied from class:XDDFChartAxisUse this to check before retrieving a number format, as callingXDDFChartAxis.getNumberFormat()may create a default one if none exists.- Specified by:
hasNumberFormatin 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:
getCTNumFmtin classXDDFChartAxis
-
getCTScaling
protected org.openxmlformats.schemas.drawingml.x2006.chart.CTScaling getCTScaling()- Specified by:
getCTScalingin classXDDFChartAxis
-
getCTCrosses
protected org.openxmlformats.schemas.drawingml.x2006.chart.CTCrosses getCTCrosses()- Specified by:
getCTCrossesin classXDDFChartAxis
-
getDelete
protected org.openxmlformats.schemas.drawingml.x2006.chart.CTBoolean getDelete()- Specified by:
getDeletein classXDDFChartAxis
-
getMajorCTTickMark
protected org.openxmlformats.schemas.drawingml.x2006.chart.CTTickMark getMajorCTTickMark()- Specified by:
getMajorCTTickMarkin classXDDFChartAxis
-
getMinorCTTickMark
protected org.openxmlformats.schemas.drawingml.x2006.chart.CTTickMark getMinorCTTickMark()- Specified by:
getMinorCTTickMarkin classXDDFChartAxis
-