Class XDDFDateAxis
- java.lang.Object
-
- org.apache.poi.xddf.usermodel.chart.XDDFChartAxis
-
- org.apache.poi.xddf.usermodel.chart.XDDFDateAxis
-
- All Implemented Interfaces:
HasShapeProperties
@Beta public class XDDFDateAxis extends XDDFChartAxis
Date axis type. Currently only implements the same values asXDDFCategoryAxis, since the two are nearly identical.
-
-
Constructor Summary
Constructors Constructor Description XDDFDateAxis(org.openxmlformats.schemas.drawingml.x2006.chart.CTDateAx ctDateAx)XDDFDateAxis(org.openxmlformats.schemas.drawingml.x2006.chart.CTPlotArea plotArea, AxisPosition position)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcrossAxis(XDDFChartAxis axis)Declare this axis cross another axis.protected org.openxmlformats.schemas.drawingml.x2006.chart.CTUnsignedIntgetCTAxId()protected org.openxmlformats.schemas.drawingml.x2006.chart.CTAxPosgetCTAxPos()protected org.openxmlformats.schemas.drawingml.x2006.chart.CTCrossesgetCTCrosses()protected org.openxmlformats.schemas.drawingml.x2006.chart.CTNumFmtgetCTNumFmt()protected org.openxmlformats.schemas.drawingml.x2006.chart.CTScalinggetCTScaling()protected org.openxmlformats.schemas.drawingml.x2006.chart.CTTickLblPosgetCTTickLblPos()protected org.openxmlformats.schemas.drawingml.x2006.chart.CTBooleangetDelete()protected org.openxmlformats.schemas.drawingml.x2006.chart.CTTickMarkgetMajorCTTickMark()doublegetMajorUnit()protected org.openxmlformats.schemas.drawingml.x2006.chart.CTTickMarkgetMinorCTTickMark()doublegetMinorUnit()XDDFShapePropertiesgetOrAddMajorGridProperties()XDDFShapePropertiesgetOrAddMinorGridProperties()XDDFShapePropertiesgetOrAddShapeProperties()XDDFRunPropertiesgetOrAddTextProperties()booleanhasNumberFormat()Use this to check before retrieving a number format, as callingXDDFChartAxis.getNumberFormat()may create a default one if none exists.booleanisSetMajorUnit()booleanisSetMinorUnit()voidsetMajorUnit(double major)voidsetMinorUnit(double minor)voidsetTitle(String text)-
Methods inherited from class org.apache.poi.xddf.usermodel.chart.XDDFChartAxis
getCrosses, getId, getLogBase, getMajorTickMark, getMaximum, getMinimum, getMinorTickMark, getNextAxId, getNumberFormat, getOrAddLinesProperties, getOrAddTextProperties, getOrientation, getPosition, getTickLabelPosition, isSetLogBase, isSetMaximum, isSetMinimum, isVisible, setCrosses, setLogBase, setMajorTickMark, setMaximum, setMinimum, setMinorTickMark, setNumberFormat, setOrientation, setPosition, setTickLabelPosition, setVisible
-
-
-
-
Constructor Detail
-
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 Detail
-
getOrAddMajorGridProperties
public XDDFShapeProperties getOrAddMajorGridProperties()
- Specified by:
getOrAddMajorGridPropertiesin classXDDFChartAxis
-
getOrAddMinorGridProperties
public XDDFShapeProperties getOrAddMinorGridProperties()
- Specified by:
getOrAddMinorGridPropertiesin classXDDFChartAxis
-
getOrAddShapeProperties
public XDDFShapeProperties getOrAddShapeProperties()
-
getOrAddTextProperties
public XDDFRunProperties getOrAddTextProperties()
- Specified by:
getOrAddTextPropertiesin classXDDFChartAxis- Since:
- POI 4.0.2
-
setTitle
public void setTitle(String text)
- 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
public void crossAxis(XDDFChartAxis axis)
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
-
getCTTickLblPos
protected org.openxmlformats.schemas.drawingml.x2006.chart.CTTickLblPos getCTTickLblPos()
- Specified by:
getCTTickLblPosin classXDDFChartAxis
-
-