Skip to main content

DoughnutDataLabel Class

Contains settings for a data label in a doughnut chart.

Declaration

public class DoughnutDataLabel extends DataLabel

Remarks

The DoughnutDataLabel class inherits label content and formatting settings from DataLabel and DataLabelBase classes (for example, DoughnutDataLabel.setShowValue(value) and DoughnutDataLabel.setCustomText(value) methods).

The setShowPercent(boolean value) method specifies whether the data label displays the percentage value.

Refer to the following help topic for additional information: Customize Chart Data Labels — 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
JavaObject
See Also

DoughnutDataLabel()

Initializes a new instance of the DoughnutDataLabel class.

Declaration

public DoughnutDataLabel()

Methods

deepClone() Method

Returns a deep copy of this DoughnutDataLabel instance.

Declaration

public DoughnutDataLabel deepClone()

Returns

Type Description
DoughnutDataLabel

A deep copy of this DoughnutDataLabel.

getShowPercent() Method

Returns whether the data label displays the percentage value.

Declaration

public boolean getShowPercent()

Returns

Type Description
boolean

true if the data label displays the percentage value; otherwise, false.

setShowPercent(boolean value) Method

Sets whether to display the percentage value in the data label.

Declaration

public void setShowPercent(boolean value)

Parameters

Name Type Description
value boolean

true to display the percentage value; otherwise, false.

Remarks

If you do not call the setShowPercent(value) method, the API uses false for a new data label and the value from the document for a loaded data label.