Skip to main content

DisplayUnitOptionsBase Class

The base class for display unit settings of chart axes.

Declaration

public abstract class DisplayUnitOptionsBase extends ChartElementBase

Remarks

Display units divide axis values (for example, by 1,000 or 1,000,000) to shorten axis labels. The display unit label shows the unit.

DisplayUnitOptions and DisplayUnitOptionsEx classes derive from the DisplayUnitOptionsBase class.

Inherited Members

com.devexpress.system.JavaObject.clone()
com.devexpress.system.JavaObject.equals(java.lang.Object)
com.devexpress.system.JavaObject.hashCode()
com.devexpress.system.JavaObject.initFields()
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

Object
JavaObject
OfficeObject
ChartElementBase
DisplayUnitOptionsBase
See Also

Methods

deepClone() Method

Returns a deep copy of this DisplayUnitOptionsBase instance.

Declaration

public DisplayUnitOptionsBase deepClone()

Returns

Type Description
DisplayUnitOptionsBase

A deep copy of this DisplayUnitOptionsBase.

getFill() Method

Returns fill settings of the display unit label.

Declaration

public Fill getFill()

Returns

Type Description
Fill

Fill settings of the display unit label.

getOutlineStyle() Method

Returns outline settings of the display unit label.

Declaration

public OutlineStyle getOutlineStyle()

Returns

Type Description
OutlineStyle

Outline settings of the display unit label.

getShowLabel() Method

Returns whether the chart displays the display unit label.

Declaration

public boolean getShowLabel()

Returns

Type Description
boolean

true if the chart displays the display unit label; otherwise, false.

getUnitType() Method

Returns the display unit type.

Declaration

public DisplayUnitType getUnitType()

Returns

Type Description
DisplayUnitType

The display unit type.

setFill(Fill value) Method

Sets fill settings of the display unit label.

Declaration

public void setFill(Fill value)

Parameters

Name Type Description
value Fill

Fill settings of the display unit label.

setOutlineStyle(OutlineStyle value) Method

Sets outline settings of the display unit label.

Declaration

public void setOutlineStyle(OutlineStyle value)

Parameters

Name Type Description
value OutlineStyle

Outline settings of the display unit label.

setShowLabel(boolean value) Method

Sets whether the chart displays the display unit label.

Declaration

public void setShowLabel(boolean value)

Parameters

Name Type Description
value boolean

true to display the display unit label; otherwise, false.

Remarks

If you do not call the setShowLabel(value) method, the API uses false.

setUnitType(DisplayUnitType value) Method

Sets the display unit type.

Declaration

public void setUnitType(DisplayUnitType value)

Parameters

Name Type Description
value DisplayUnitType

The display unit type.

Exceptions

Type Description
ArgumentException

Thrown if you call the setUnitType(DisplayUnitType.PERCENTAGE) method for display unit options of a value axis in a standard chart.

Remarks

If you do not call the setUnitType(value) method, the API uses DisplayUnitType.NONE. To specify a custom display unit for a value axis in a standard chart, call the setUnitType(DisplayUnitType.CUSTOM) method and the DisplayUnitOptions.setCustomUnit(value) method.

Note

The DisplayUnitType.PERCENTAGE value applies to axes in chart types introduced in Microsoft Excel 2016 (DisplayUnitOptionsEx). Value axes of standard charts (DisplayUnitOptions) do not support this value.