LineSeries Class

A series that displays data as points connected by a line.

Syntax

public class LineSeries
extends Series

The following image demonstrates Line series:

LineSeries

Inherited Members

java.lang.Object.equals(java.lang.Object)
java.lang.Object.hashCode()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.toString()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long, int)

Constructors

LineSeries() Constructor

Initializes a new LineSeries class instance with default parameters.

Syntax

public LineSeries()

Methods

getLabel() Method

Returns the marker series label.

Syntax

public MarkerSeriesLabel getLabel()

Returns

Type Description
MarkerSeriesLabel

The MarkerSeriesLabel object specifying the Line series labels.

getStyle() Method

Returns the appearance parameters of a Line series.

Syntax

public LineSeriesStyle getStyle()

Returns

Type Description
LineSeriesStyle

The LineSeriesStyle object that configures the Line series appearance.

isColorEach() Method

Returns the value indicating whether the series markers have different colors.

Syntax

public boolean isColorEach()

Returns

Type Description
boolean

true if markers should be multicolored; otherwise false.

isMarkersVisible() Method

Returns the value indicating whether series markers should be visible.

Syntax

public boolean isMarkersVisible()

Returns

Type Description
boolean

true if markers are visible; otherwise false.

setColorEach(boolean) Method

Specifies the value indicating whether the series markers have different colors.

Syntax

public void setColorEach(boolean value)

Parameters

Type Name Description
boolean value

true if markers should be multicolored; otherwise false.

setLabel(MarkerSeriesLabel) Method

Specifies the marker series label.

Syntax

public void setLabel(MarkerSeriesLabel seriesLabel)

Parameters

Type Name Description
MarkerSeriesLabel seriesLabel

The MarkerSeriesLabel object specifying the Line series labels.

setMarkersVisible(boolean) Method

Specifies the value indicating whether series markers should be visible.

Syntax

public void setMarkersVisible(boolean showMarkers)

Parameters

Type Name Description
boolean showMarkers

true if markers are visible; otherwise false.

setStyle(LineSeriesStyle) Method

Specifies the appearance parameters of a Line series.

Syntax

public void setStyle(LineSeriesStyle style)

Parameters

Type Name Description
LineSeriesStyle style

The LineSeriesStyle object that configures the Line series appearance.