org.apache.poi.xssf.usermodel.charts
Class XSSFChartAxis

java.lang.Object
  extended by org.apache.poi.xssf.usermodel.charts.XSSFChartAxis
All Implemented Interfaces:
ChartAxis
Direct Known Subclasses:
XSSFCategoryAxis, XSSFDateAxis, XSSFValueAxis

@Beta
public abstract class XSSFChartAxis
extends java.lang.Object
implements ChartAxis

Base class for all axis types.

Author:
Roman Kashitsyn

Field Summary
protected  XSSFChart chart
           
 
Constructor Summary
protected XSSFChartAxis(XSSFChart chart)
           
 
Method Summary
 AxisCrosses getCrosses()
           
protected abstract  org.openxmlformats.schemas.drawingml.x2006.chart.CTAxPos getCTAxPos()
           
protected abstract  org.openxmlformats.schemas.drawingml.x2006.chart.CTCrosses getCTCrosses()
           
protected abstract  org.openxmlformats.schemas.drawingml.x2006.chart.CTNumFmt getCTNumFmt()
           
protected abstract  org.openxmlformats.schemas.drawingml.x2006.chart.CTScaling getCTScaling()
           
protected abstract  org.openxmlformats.schemas.drawingml.x2006.chart.CTBoolean getDelete()
           
abstract  org.openxmlformats.schemas.drawingml.x2006.main.CTShapeProperties getLine()
           
 double getLogBase()
           
protected abstract  org.openxmlformats.schemas.drawingml.x2006.chart.CTTickMark getMajorCTTickMark()
           
abstract  org.openxmlformats.schemas.drawingml.x2006.chart.CTChartLines getMajorGridLines()
           
 AxisTickMark getMajorTickMark()
           
 double getMaximum()
           
 double getMinimum()
           
protected abstract  org.openxmlformats.schemas.drawingml.x2006.chart.CTTickMark getMinorCTTickMark()
           
 AxisTickMark getMinorTickMark()
           
 java.lang.String getNumberFormat()
           
 AxisOrientation getOrientation()
           
 AxisPosition getPosition()
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.poi.ss.usermodel.charts.ChartAxis
crossAxis, getId, hasNumberFormat
 

Field Detail

chart

protected XSSFChart chart
Constructor Detail

XSSFChartAxis

protected XSSFChartAxis(XSSFChart chart)
Method Detail

getPosition

public AxisPosition getPosition()
Specified by:
getPosition in interface ChartAxis
Returns:
axis position

setPosition

public void setPosition(AxisPosition position)
Specified by:
setPosition in interface ChartAxis
Parameters:
position - new axis position

setNumberFormat

public void setNumberFormat(java.lang.String format)
Specified by:
setNumberFormat in interface ChartAxis
Parameters:
format - axis number format

getNumberFormat

public java.lang.String getNumberFormat()
Specified by:
getNumberFormat in interface ChartAxis
Returns:
axis number format

isSetLogBase

public boolean isSetLogBase()
Specified by:
isSetLogBase in interface ChartAxis
Returns:
true if log base is defined, false otherwise

setLogBase

public void setLogBase(double logBase)
Specified by:
setLogBase in interface ChartAxis
Parameters:
logBase - a number between 2 and 1000 (inclusive)

getLogBase

public double getLogBase()
Specified by:
getLogBase in interface ChartAxis
Returns:
axis log base or 0.0 if not set

isSetMinimum

public boolean isSetMinimum()
Specified by:
isSetMinimum in interface ChartAxis
Returns:
true if minimum value is defined, false otherwise

setMinimum

public void setMinimum(double min)
Specified by:
setMinimum in interface ChartAxis
Parameters:
min - axis minimum

getMinimum

public double getMinimum()
Specified by:
getMinimum in interface ChartAxis
Returns:
axis minimum or 0.0 if not set

isSetMaximum

public boolean isSetMaximum()
Specified by:
isSetMaximum in interface ChartAxis
Returns:
true if maximum value is defined, false otherwise

setMaximum

public void setMaximum(double max)
Specified by:
setMaximum in interface ChartAxis
Parameters:
max - axis maximum

getMaximum

public double getMaximum()
Specified by:
getMaximum in interface ChartAxis
Returns:
axis maximum or 0.0 if not set

getOrientation

public AxisOrientation getOrientation()
Specified by:
getOrientation in interface ChartAxis
Returns:
axis orientation

setOrientation

public void setOrientation(AxisOrientation orientation)
Specified by:
setOrientation in interface ChartAxis
Parameters:
orientation - axis orientation

getCrosses

public AxisCrosses getCrosses()
Specified by:
getCrosses in interface ChartAxis
Returns:
axis cross type

setCrosses

public void setCrosses(AxisCrosses crosses)
Specified by:
setCrosses in interface ChartAxis
Parameters:
crosses - axis cross type

isVisible

public boolean isVisible()
Specified by:
isVisible in interface ChartAxis
Returns:
visibility of the axis.

setVisible

public void setVisible(boolean value)
Specified by:
setVisible in interface ChartAxis
Parameters:
value - visibility of the axis.

getMajorTickMark

public AxisTickMark getMajorTickMark()
Specified by:
getMajorTickMark in interface ChartAxis
Returns:
major tick mark.

setMajorTickMark

public void setMajorTickMark(AxisTickMark tickMark)
Specified by:
setMajorTickMark in interface ChartAxis
Parameters:
tickMark - major tick mark type.

getMinorTickMark

public AxisTickMark getMinorTickMark()
Specified by:
getMinorTickMark in interface ChartAxis
Returns:
minor tick mark.

setMinorTickMark

public void setMinorTickMark(AxisTickMark tickMark)
Specified by:
setMinorTickMark in interface ChartAxis
Parameters:
tickMark - minor tick mark type.

getCTAxPos

protected abstract org.openxmlformats.schemas.drawingml.x2006.chart.CTAxPos getCTAxPos()

getCTNumFmt

protected abstract org.openxmlformats.schemas.drawingml.x2006.chart.CTNumFmt getCTNumFmt()

getCTScaling

protected abstract org.openxmlformats.schemas.drawingml.x2006.chart.CTScaling getCTScaling()

getCTCrosses

protected abstract org.openxmlformats.schemas.drawingml.x2006.chart.CTCrosses getCTCrosses()

getDelete

protected abstract org.openxmlformats.schemas.drawingml.x2006.chart.CTBoolean getDelete()

getMajorCTTickMark

protected abstract org.openxmlformats.schemas.drawingml.x2006.chart.CTTickMark getMajorCTTickMark()

getMinorCTTickMark

protected abstract org.openxmlformats.schemas.drawingml.x2006.chart.CTTickMark getMinorCTTickMark()

getMajorGridLines

@Internal
public abstract org.openxmlformats.schemas.drawingml.x2006.chart.CTChartLines getMajorGridLines()

getLine

@Internal
public abstract org.openxmlformats.schemas.drawingml.x2006.main.CTShapeProperties getLine()


Copyright 2017 The Apache Software Foundation or its licensors, as applicable.