Skip to main content

ChartElement Class

Contains fill, outline, and shape effect settings of a chart element.

Declaration

public class ChartElement extends ChartElementBase

Remarks

Call the following methods to access fill, outline, and shape effect settings of chart elements:

Method Chart element
SeriesBase.getProperties() Series
DataLabelBase.getProperties() Data labels of a standard chart
DataLabelExBase.getProperties() Data labels of a chart of a type introduced in Microsoft Excel 2016
GroupedChartView.getDropLineProperties() Drop lines

AxisBase, LegendBase, PlotArea, DataPoint, and other classes derive from the ChartElement class and add settings of specific chart elements.

Refer to the following help topic for additional information: Create and Customize Charts — 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
See Also

ChartElement()

Initializes a new instance of the ChartElement class.

Declaration

public ChartElement()

Methods

deepClone() Method

Returns a deep copy of this ChartElement instance.

Declaration

public ChartElement deepClone()

Returns

Type Description
ChartElement

A deep copy of this ChartElement.

getEffects() Method

Returns shape effect settings of the chart element.

Declaration

public ShapeEffectProperties getEffects()

Returns

Type Description
ShapeEffectProperties

Shape effect settings of the chart element.

getFill() Method

Returns fill settings of the chart element.

Declaration

public Fill getFill()

Returns

Type Description
Fill

Fill settings of the chart element.

getOutlineStyle() Method

Returns outline settings of the chart element.

Declaration

public OutlineStyle getOutlineStyle()

Returns

Type Description
OutlineStyle

Outline settings of the chart element.

setEffects(ShapeEffectProperties value) Method

Sets shape effect settings of the chart element.

Declaration

public void setEffects(ShapeEffectProperties value)

Parameters

Name Type Description
value ShapeEffectProperties

Shape effect settings of the chart element.

Remarks

For a new ChartElement object, the getEffects() method returns null.

setFill(Fill value) Method

Sets fill settings of the chart element.

Declaration

public void setFill(Fill value)

Parameters

Name Type Description
value Fill

Fill settings of the chart element.

Remarks

If you call the setFill(null) method, the chart element uses automatic fill. For a new ChartElement object, the getFill() method returns null.

setOutlineStyle(OutlineStyle value) Method

Sets outline settings of the chart element.

Declaration

public void setOutlineStyle(OutlineStyle value)

Parameters

Name Type Description
value OutlineStyle

Outline settings of the chart element.

Remarks

If you call the setOutlineStyle(null) method, the chart element uses the outline that the chart style specifies. For a new ChartElement object, the getOutlineStyle() method returns null.