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
Inheritance
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 |
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 |
|
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 |
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 |
|
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.