Skip to main content

WaterfallDataLabel Class

Contains settings for a data label in a waterfall chart.

Declaration

public class WaterfallDataLabel extends DataLabelEx

Remarks

The WaterfallDataLabel class inherits label content and formatting settings from the DataLabelExBase class (for example, WaterfallDataLabel.setShowValue(value) and WaterfallDataLabel.setNumberFormat(value) methods).

Call the setLabelPosition(WaterfallDataLabelPosition value) method to specify the label position relative to the waterfall column.

Pass a WaterfallDataLabel object to the IWaterfallDataLabels.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

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

WaterfallDataLabel()

Initializes a new instance of the WaterfallDataLabel class.

Declaration

public WaterfallDataLabel()

Methods

deepClone() Method

Returns a deep copy of this WaterfallDataLabel instance.

Declaration

public WaterfallDataLabel deepClone()

Returns

Type Description
WaterfallDataLabel

A deep copy of this WaterfallDataLabel.

getLabelPosition() Method

Returns the data label position relative to the waterfall column.

Declaration

public WaterfallDataLabelPosition getLabelPosition()

Returns

Type Description
WaterfallDataLabelPosition

The data label position.

setLabelPosition(WaterfallDataLabelPosition value) Method

Sets the data label position relative to the waterfall column.

Declaration

public void setLabelPosition(WaterfallDataLabelPosition value)

Parameters

Name Type Description
value WaterfallDataLabelPosition

The data label position.

Exceptions

Type Description
NullPointerException

Thrown if the value parameter is null.

Remarks

The setLabelPosition(value) method accepts the following values:

Value Description
CENTER Indicates that the data label is in the center of the waterfall column.
INSIDE_BASE Indicates that the data label is inside the waterfall column at the column base.
INSIDE_END Indicates that the data label is inside the waterfall column at the column end.
OUTSIDE_END Indicates that the data label is outside the waterfall column beyond the column end.
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 WaterfallDataLabelPosition.DEFAULT for a new data label and the value from the document for a loaded data label.