Skip to main content

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

com.devexpress.system.JavaObject.clone()
com.devexpress.system.JavaObject.equals(java.lang.Object)
com.devexpress.system.JavaObject.hashCode()
com.devexpress.system.JavaObject.initFields()
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
OfficeObject
DataLabelExBase
See Also

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 null if the data label does not specify a separator.

getShowCategoryName() Method

Returns whether the data label displays the category name.

Declaration

public boolean getShowCategoryName()

Returns

Type Description
boolean

true if the data label displays the category name; otherwise, false.

getShowSeriesText() Method

Returns whether the data label displays the series name.

Declaration

public boolean getShowSeriesText()

Returns

Type Description
boolean

true if the data label displays the series name; otherwise, false.

getShowValue() Method

Returns whether the data label displays the data point value.

Declaration

public boolean getShowValue()

Returns

Type Description
boolean

true if the data label displays the data point value; otherwise, false.

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

true to display the category name; otherwise, false.

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

true to display the series name; otherwise, false.

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

true to display the data point value; otherwise, false.

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.