Skip to main content

AxisEx Class

The base class for axes in chart types introduced in Microsoft Excel 2016.

Declaration

public abstract class AxisEx extends AxisBase

Remarks

CategoryAxisEx and ValueAxisEx classes derive from the AxisEx class. Box and whisker, histogram, Pareto, and waterfall charts have a category axis and a value axis. A Pareto chart also has a secondary value axis. A funnel chart has a category axis.

Refer to the following help topic for additional information: Create Waterfall, Funnel, Treemap, and Other Office 2016 Charts — Presentation API for Java.

Inherited Members

com.devexpress.system.JavaObject.clone()
com.devexpress.system.JavaObject.equals(java.lang.Object)
com.devexpress.system.JavaObject.hashCode()
com.devexpress.system.JavaObject.memberwiseClone()
com.devexpress.system.JavaObject.toString()
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)

Inheritance

See Also

AxisEx()

Initializes a new instance of the AxisEx class.

Declaration

public AxisEx()

Methods

deepClone() Method

Returns a deep copy of this AxisEx instance.

Declaration

public AxisEx deepClone()

Returns

Type Description
AxisEx

A deep copy of this AxisEx.

getAxisType() Method

Returns the axis type.

Declaration

public abstract AxisExType getAxisType()

Returns

Type Description
AxisExType

The axis type.

Remarks

The getAxisType() method returns one of the following values:

Value Description
CATEGORY Indicates a category axis.
VALUE Indicates a value axis.

getDisplayUnit() Method

Returns display unit settings for axis labels.

Declaration

public DisplayUnitOptionsEx getDisplayUnit()

Returns

Type Description
DisplayUnitOptionsEx

Display unit settings, or null if the axis does not use display units.

getMajorUnit() Method

Returns the interval between major tick marks.

Declaration

public double getMajorUnit()

Returns

Type Description
double

The interval between major tick marks.

getMinorUnit() Method

Returns the interval between minor tick marks.

Declaration

public double getMinorUnit()

Returns

Type Description
double

The interval between minor tick marks.

getTitle() Method

Returns axis title settings.

Declaration

public ChartTitleOptionsEx getTitle()

Returns

Type Description
ChartTitleOptionsEx

Axis title settings, or null if the axis has no title settings.

setDisplayUnit(DisplayUnitOptionsEx value) Method

Sets display unit settings for axis labels.

Declaration

public void setDisplayUnit(DisplayUnitOptionsEx value)

Parameters

Name Type Description
value DisplayUnitOptionsEx

Display unit settings.

Remarks

Display units divide axis values (for example, by 1,000 or 1,000,000) to shorten axis labels. Refer to the DisplayUnitOptionsEx class description for additional information.

setMajorUnit(double value) Method

Sets the interval between major tick marks.

Declaration

public void setMajorUnit(double value)

Parameters

Name Type Description
value double

The interval between major tick marks.

Exceptions

Type Description
ArgumentException

Thrown if the value parameter is negative.

Remarks

The value must be 0 or greater. Call the setMajorUnit(0) method to use an automatic interval between major tick marks. If you do not call the setMajorUnit(value) method, the API uses 0.

setMinorUnit(double value) Method

Sets the interval between minor tick marks.

Declaration

public void setMinorUnit(double value)

Parameters

Name Type Description
value double

The interval between minor tick marks.

Exceptions

Type Description
ArgumentException

Thrown if the value parameter is negative.

Remarks

The value must be 0 or greater. Call the setMinorUnit(0) method to use an automatic interval between minor tick marks. If you do not call the setMinorUnit(value) method, the API uses 0.

setTitle(ChartTitleOptionsEx value) Method

Sets axis title settings.

Declaration

public void setTitle(ChartTitleOptionsEx value)

Parameters

Name Type Description
value ChartTitleOptionsEx

Axis title settings.