IBubbleDataLabels Interface
Contains data label settings for a bubble series or bubble chart view.
Declaration
public interface IBubbleDataLabels extends IDataLabels
Remarks
Call the BubbleSeries.getDataLabels() method to access data label settings for a bubble series. Call the BubbleChartView.getDataLabels() method to access data label settings for all series in a bubble chart view.
Refer to the following help topic for additional information: Customize Chart Data Labels — Presentation API for Java.
Implements
Methods
getLabel(int key) Method
Returns settings for the data label of the specified data point.
Declaration
public abstract BubbleDataLabel getLabel(int key)
Parameters
| Name | Type | Description |
|---|---|---|
| key | int | The zero-based index of the data point. |
Returns
| Type | Description |
|---|---|
| BubbleDataLabel | Data label settings, or |
getLabelPosition() Method
Returns the position of data labels relative to bubbles.
Declaration
public abstract BubbleDataLabelPosition getLabelPosition()
Returns
| Type | Description |
|---|---|
| BubbleDataLabelPosition | The data label position. |
getShowBubbleSize() Method
Returns whether data labels display bubble sizes.
Declaration
public abstract boolean getShowBubbleSize()
Returns
| Type | Description |
|---|---|
| boolean |
|
setLabel(int key, BubbleDataLabel value) Method
Sets settings for the data label of the specified data point.
Declaration
public abstract void setLabel(int key, BubbleDataLabel value)
Parameters
| Name | Type | Description |
|---|---|---|
| key | int | The zero-based index of the data point. |
| value | BubbleDataLabel | Data label settings. |
Exceptions
| Type | Description |
|---|---|
| ArgumentNullException | Thrown if the |
Remarks
Pass a BubbleDataLabel object to the setLabel(key, value) method to format the data label of an individual data point.
To remove individual data label settings, call the remove(key) method of the IBubbleDataLabels object.
setLabelPosition(BubbleDataLabelPosition value) Method
Sets the position of data labels relative to bubbles.
Declaration
public abstract 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.
Call the BubbleDataLabel.setLabelPosition(value) method to specify the position of an individual data label.
setShowBubbleSize(boolean value) Method
Sets whether to display bubble sizes in data labels.
Declaration
public abstract void setShowBubbleSize(boolean value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | boolean |
|
Remarks
If you do not call the setShowBubbleSize(value) method, the API uses false.
Call the BubbleDataLabel.setShowBubbleSize(value) method to specify this setting for an individual data label.