Skip to main content

DisplayUnitOptions Class

Contains display unit settings of a value axis in a standard chart.

Declaration

public class DisplayUnitOptions extends DisplayUnitOptionsBase

Remarks

Call the ValueAxis.getDisplayUnit() method to access display unit settings of a value axis. Call the DisplayUnitOptions.setUnitType(value) method to specify the display unit.

Refer to the following help topic for additional information: Customize Chart Axes — 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

Object
See Also

DisplayUnitOptions()

Initializes a new instance of the DisplayUnitOptions class.

Declaration

public DisplayUnitOptions()

Methods

deepClone() Method

Returns a deep copy of this DisplayUnitOptions instance.

Declaration

public DisplayUnitOptions deepClone()

Returns

Type Description
DisplayUnitOptions

A deep copy of this DisplayUnitOptions.

getCustomLabelContent() Method

Returns custom text of the display unit label.

Declaration

public TextArea getCustomLabelContent()

Returns

Type Description
TextArea

Custom text of the display unit label.

getCustomUnit() Method

Returns the custom display unit.

Declaration

public double getCustomUnit()

Returns

Type Description
double

The custom display unit.

getLabelReference() Method

Returns a chart data reference to the display unit label text.

Declaration

public IChartDataReference getLabelReference()

Returns

Type Description
IChartDataReference

A reference to the label text.

getLabelTextProperties() Method

Returns text formatting settings of the display unit label.

Declaration

public TextProperties getLabelTextProperties()

Returns

Type Description
TextProperties

Text formatting settings of the display unit label.

getLayout() Method

Returns layout settings of the display unit label.

Declaration

public LayoutOptions getLayout()

Returns

Type Description
LayoutOptions

Layout settings of the display unit label.

setCustomLabelContent(TextArea value) Method

Sets custom text of the display unit label.

Declaration

public void setCustomLabelContent(TextArea value)

Parameters

Name Type Description
value TextArea

Custom text of the display unit label.

Remarks

If you pass a text area, the API clears the reference that the getLabelReference() method returns.

setCustomUnit(double value) Method

Sets the custom display unit.

Declaration

public void setCustomUnit(double value)

Parameters

Name Type Description
value double

The custom display unit (a positive number).

Exceptions

Type Description
ArgumentException

Thrown if the value parameter is less than or equal to 0.

Remarks

The axis divides values by the custom display unit. If you do not call the setCustomUnit(value) method, the API uses 1.

Note

The custom display unit takes effect when you call the DisplayUnitOptions.setUnitType(DisplayUnitType.CUSTOM) method.

setLabelReference(IChartDataReference value) Method

Sets a chart data reference to the display unit label text.

Declaration

public void setLabelReference(IChartDataReference value)

Parameters

Name Type Description
value IChartDataReference

A reference to the label text.

Remarks

If you pass a reference, the API clears the custom text that the getCustomLabelContent() method returns.

setLabelTextProperties(TextProperties value) Method

Sets text formatting settings of the display unit label.

Declaration

public void setLabelTextProperties(TextProperties value)

Parameters

Name Type Description
value TextProperties

Text formatting settings of the display unit label.

setLayout(LayoutOptions value) Method

Sets layout settings of the display unit label.

Declaration

public void setLayout(LayoutOptions value)

Parameters

Name Type Description
value LayoutOptions

Layout settings of the display unit label.