Skip to main content

BoxAndWhiskerDataLabel Class

Contains settings for a data label in a box and whisker chart.

Declaration

public class BoxAndWhiskerDataLabel extends DataLabelEx

Remarks

The BoxAndWhiskerDataLabel class inherits label content and formatting settings from the DataLabelExBase class (for example, BoxAndWhiskerDataLabel.setShowValue(value) and BoxAndWhiskerDataLabel.setNumberFormat(value) methods).

Call the setLabelPosition(BoxAndWhiskerDataLabelPosition value) method to specify the label position relative to the data point.

Pass a BoxAndWhiskerDataLabel object to the IBoxAndWhiskerDataLabels.setLabel(key, value) method to format the data label of an individual data point.

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

BoxAndWhiskerDataLabel()

Initializes a new instance of the BoxAndWhiskerDataLabel class.

Declaration

public BoxAndWhiskerDataLabel()

Methods

deepClone() Method

Returns a deep copy of this BoxAndWhiskerDataLabel instance.

Declaration

public BoxAndWhiskerDataLabel deepClone()

Returns

Type Description
BoxAndWhiskerDataLabel

A deep copy of this BoxAndWhiskerDataLabel.

getLabelPosition() Method

Returns the data label position relative to the data point.

Declaration

public BoxAndWhiskerDataLabelPosition getLabelPosition()

Returns

Type Description
BoxAndWhiskerDataLabelPosition

The data label position.

setLabelPosition(BoxAndWhiskerDataLabelPosition value) Method

Sets the data label position relative to the data point.

Declaration

public void setLabelPosition(BoxAndWhiskerDataLabelPosition value)

Parameters

Name Type Description
value BoxAndWhiskerDataLabelPosition

The data label position.

Exceptions

Type Description
NullPointerException

Thrown if the value parameter is null.

Remarks

The setLabelPosition(value) method accepts the following values:

Value Description
LEFT Indicates that the data label is to the left of the data point.
TOP Indicates that the data label is above the data point.
RIGHT Indicates that the data label is to the right of the data point.
BOTTOM Indicates that the data label is below the data point.
DEFAULT Indicates that the data label position is not specified, and the chart application uses the default position.

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