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