ConstantLineBase Class

The base class for all constant lines.

Declaration

public abstract class ConstantLineBase
extends StyledElement

Inheritance

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

ConstantLineBase() Constructor

Initializes a new ConstantLineBase class instance with default parameters.

Declaration

public ConstantLineBase()

Methods

ConstantLineBase.getLegendText() Method

Returns the text that identifies the constant line in the chart legend.

Declaration

public String getLegendText()

Returns

Type Description
String

A string specifying a constant line's legend text.

ConstantLineBase.getStyle() Method

Returns a constant line's style.

Declaration

public ConstantLineStyle getStyle()

Returns

Type Description
ConstantLineStyle

The ConstantLineStyle object specifying a constant line appearance.

ConstantLineBase.getTitle() Method

Returns a constant line's title.

Declaration

public ConstantLineTitle getTitle()

Returns

Type Description
ConstantLineTitle

A ConstantLineTitle object that specifies a constant line's title.

ConstantLineBase.isShowBehind() Method

Returns a value that indicates whether the constant line is displayed behind the other chart elements.

Declaration

public boolean isShowBehind()

Returns

Type Description
boolean

true if a constant line is drawn behind series and other chart elements; otherwise, false.

ConstantLineBase.isVisible() Method

Returns the value indicating whether the constant line is visible.

Declaration

public boolean isVisible()

Returns

Type Description
boolean

true if the constant line is visible; otherwise, false.

ConstantLineBase.isVisibleInLegend() Method

Returns the value indicating whether the constant line is shown in the chart legend.

Declaration

public boolean isVisibleInLegend()

Returns

Type Description
boolean

true if the constant line is shown in the legend; otherwise, false.

ConstantLineBase.setLegendText(String) Method

Specifies the text that identifies the constant line in the chart legend.

Declaration

public void setLegendText(String text)

Parameters

Type Name Description
String text

A string specifying a constant line's legend text.

ConstantLineBase.setShowBehind(boolean) Method

Specifies a value that indicates whether the constant line is displayed behind the other chart elements.

Declaration

public void setShowBehind(boolean value)

Parameters

Type Name Description
boolean value

true if a constant line is drawn behind series and other chart elements; otherwise, false.

ConstantLineBase.setStyle(ConstantLineStyle) Method

Specifies a constant line's style.

Declaration

public void setStyle(ConstantLineStyle style)

Parameters

Type Name Description
ConstantLineStyle style

The ConstantLineStyle object specifying a constant line appearance.

ConstantLineBase.setTitle(ConstantLineTitle) Method

Specifies a constant line's title.

Declaration

public void setTitle(ConstantLineTitle title)

Parameters

Type Name Description
ConstantLineTitle title

A ConstantLineTitle object that specifies a constant line's title

ConstantLineBase.setVisible(boolean) Method

Specifies the value indicating the constant line's visibility.

Declaration

public void setVisible(boolean value)

Parameters

Type Name Description
boolean value

true if the constant line is visible; otherwise, false

ConstantLineBase.setVisibleInLegend(boolean) Method

Specifies the value indicating whether the constant line is shown in the chart legend.

Declaration

public void setVisibleInLegend(boolean value)

Parameters

Type Name Description
boolean value

true if the constant line is shown in the legend; otherwise, false.