DataLabelExBase Class
The base class for data labels in chart types introduced in Microsoft Excel 2016.
Declaration
public abstract class DataLabelExBase extends OfficeObject
Remarks
The DataLabelEx class derives from the DataLabelExBase class.
A data label can display the data point value, the category name, and the series name. The following methods specify the parts of the data label text:
The setSeparator(String value) method specifies the separator between displayed parts of the data label text.
Refer to the following help topic for additional information: Customize Chart Data Labels — Presentation API for Java.
Inherited Members
Inheritance
Methods
getNumberFormat() Method
Returns number format settings for numeric values in the data label.
Declaration
public NumberFormatOptions getNumberFormat()
Returns
| Type | Description |
|---|---|
| NumberFormatOptions | Number format settings. |
getProperties() Method
Returns fill, outline, and shape effect settings for the data label.
Declaration
public ChartElement getProperties()
Returns
| Type | Description |
|---|---|
| ChartElement | Fill, outline, and shape effect settings. |
getSeparator() Method
Returns the separator between parts of the data label text.
Declaration
public String getSeparator()
Returns
| Type | Description |
|---|---|
| String | The separator string, or |
getShowCategoryName() Method
Returns whether the data label displays the category name.
Declaration
public boolean getShowCategoryName()
Returns
| Type | Description |
|---|---|
| boolean |
|
getShowSeriesText() Method
Returns whether the data label displays the series name.
Declaration
public boolean getShowSeriesText()
Returns
| Type | Description |
|---|---|
| boolean |
|
getShowValue() Method
Returns whether the data label displays the data point value.
Declaration
public boolean getShowValue()
Returns
| Type | Description |
|---|---|
| boolean |
|
getTextProperties() Method
Returns text formatting settings for the data label.
Declaration
public TextProperties getTextProperties()
Returns
| Type | Description |
|---|---|
| TextProperties | Text formatting settings. |
setNumberFormat(NumberFormatOptions value) Method
Sets number format settings for numeric values in the data label.
Declaration
public void setNumberFormat(NumberFormatOptions value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | NumberFormatOptions | Number format settings. |
setProperties(ChartElement value) Method
Sets fill, outline, and shape effect settings for the data label.
Declaration
public void setProperties(ChartElement value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | ChartElement | Fill, outline, and shape effect settings. |
setSeparator(String value) Method
Sets the separator between parts of the data label text.
Declaration
public void setSeparator(String value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | String | The separator string. |
setShowCategoryName(boolean value) Method
Sets whether to display the category name in the data label.
Declaration
public void setShowCategoryName(boolean value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | boolean |
|
setShowSeriesText(boolean value) Method
Sets whether to display the series name in the data label.
Declaration
public void setShowSeriesText(boolean value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | boolean |
|
setShowValue(boolean value) Method
Sets whether to display the data point value in the data label.
Declaration
public void setShowValue(boolean value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | boolean |
|
setTextProperties(TextProperties value) Method
Sets text formatting settings for the data label.
Declaration
public void setTextProperties(TextProperties value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | TextProperties | Text formatting settings. |