Skip to main content

BubbleDataLabel Class

Contains settings for a data label in a bubble chart.

Declaration

public class BubbleDataLabel extends DataLabel

Remarks

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

Call the setLabelPosition(BubbleDataLabelPosition value) method to specify the label position relative to the bubble.

Call the setShowBubbleSize(boolean value) method to specify whether the data label displays the bubble size.

Pass a BubbleDataLabel object to the IBubbleDataLabels.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

BubbleDataLabel()

Initializes a new instance of the BubbleDataLabel class.

Declaration

public BubbleDataLabel()

Methods

deepClone() Method

Returns a deep copy of this BubbleDataLabel instance.

Declaration

public BubbleDataLabel deepClone()

Returns

Type Description
BubbleDataLabel

A deep copy of this BubbleDataLabel.

getLabelPosition() Method

Returns the data label position relative to the bubble.

Declaration

public BubbleDataLabelPosition getLabelPosition()

Returns

Type Description
BubbleDataLabelPosition

The data label position.

getShowBubbleSize() Method

Returns whether the data label displays the bubble size.

Declaration

public boolean getShowBubbleSize()

Returns

Type Description
boolean

true if the data label displays the bubble size; otherwise, false.

setLabelPosition(BubbleDataLabelPosition value) Method

Sets the data label position relative to the bubble.

Declaration

public void setLabelPosition(BubbleDataLabelPosition value)

Parameters

Name Type Description
value BubbleDataLabelPosition

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 bubble.
TOP Indicates that the data label is above the bubble.
RIGHT Indicates that the data label is to the right of the bubble.
BOTTOM Indicates that the data label is below the bubble.
CENTER Indicates that the data label is in the center of the bubble.
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 BubbleDataLabelPosition.DEFAULT for a new data label and the value from the document for a loaded data label.

setShowBubbleSize(boolean value) Method

Sets whether to display the bubble size in the data label.

Declaration

public void setShowBubbleSize(boolean value)

Parameters

Name Type Description
value boolean

true to display the bubble size; otherwise, false.

Remarks

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