Skip to main content

Marker Class

Contains symbol, size, fill, and outline settings of a data point marker.

Declaration

public class Marker extends ChartElementBase

Remarks

Call the LineSeries.setMarker(value), RadarSeries.setMarker(value), or ScatterSeries.setMarker(value) method to specify series markers.

Call the DataPoint.setMarker(value) method to specify the marker of an individual data point.

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

Marker()

Initializes a new instance of the Marker class.

Declaration

public Marker()

Methods

deepClone() Method

Returns a deep copy of this Marker instance.

Declaration

public Marker deepClone()

Returns

Type Description
Marker

A deep copy of this Marker.

getFill() Method

Returns fill settings of the marker.

Declaration

public Fill getFill()

Returns

Type Description
Fill

Fill settings of the marker.

getOutlineStyle() Method

Returns outline settings of the marker.

Declaration

public OutlineStyle getOutlineStyle()

Returns

Type Description
OutlineStyle

Outline settings of the marker.

getSize() Method

Returns the marker size.

Declaration

public int getSize()

Returns

Type Description
int

The marker size in points.

getSymbol() Method

Returns the marker symbol.

Declaration

public MarkerStyle getSymbol()

Returns

Type Description
MarkerStyle

The marker symbol.

setFill(Fill value) Method

Sets fill settings of the marker.

Declaration

public void setFill(Fill value)

Parameters

Name Type Description
value Fill

Fill settings of the marker.

Remarks

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

setOutlineStyle(OutlineStyle value) Method

Sets outline settings of the marker.

Declaration

public void setOutlineStyle(OutlineStyle value)

Parameters

Name Type Description
value OutlineStyle

Outline settings of the marker.

Remarks

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

setSize(int value) Method

Sets the marker size.

Declaration

public void setSize(int value)

Parameters

Name Type Description
value int

The marker size in points. The value range is from 2 to 72.

Exceptions

Type Description
ArgumentOutOfRangeException

Thrown if the value parameter is less than 2 or greater than 72.

Remarks

If you do not call the setSize(value) method, the API uses 5 for a new marker and the value from the document for a loaded marker.

If the marker symbol is MarkerStyle.AUTO and you specify a size other than 5, the API also sets the marker symbol to MarkerStyle.CIRCLE.

setSymbol(MarkerStyle value) Method

Sets the marker symbol.

Declaration

public void setSymbol(MarkerStyle value)

Parameters

Name Type Description
value MarkerStyle

The marker symbol.

Remarks

If you do not call the setSymbol(value) method, the API uses MarkerStyle.AUTO for a new marker and the value from the document for a loaded marker.

If you call the setSymbol(MarkerStyle.AUTO) method, the API also resets the marker size to 5.