Skip to main content
A newer version of this page is available.

ConstantLineBase Class

The base class for all constant lines.

Declaration

public abstract class ConstantLineBase
extends StyledElement

Inherited Members

java.lang.Object.equals(java.lang.Object)(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)(long)
java.lang.Object.wait(long, int)(long,int)

Inheritance

ConstantLineBase()

Initializes a new ConstantLineBase class instance with default parameters.

Declaration

public ConstantLineBase()

Methods

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.

getStyle() Method

Returns a constant line’s style.

Declaration

public ConstantLineStyle getStyle()

Returns

Type Description
ConstantLineStyle

The ConstantLineStyle object specifying a constant line appearance.

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.

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.

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.

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.

setLegendText(String) Method

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

Declaration

public void setLegendText(String text)

Parameters

Name Type Description
text String

A string specifying a constant line’s legend text.

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

Name Type Description
value boolean

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

setStyle(ConstantLineStyle) Method

Specifies a constant line’s style.

Declaration

public void setStyle(ConstantLineStyle style)

Parameters

Name Type Description
style ConstantLineStyle

The ConstantLineStyle object specifying a constant line appearance.

setTitle(ConstantLineTitle) Method

Specifies a constant line’s title.

Declaration

public void setTitle(ConstantLineTitle title)

Parameters

Name Type Description
title ConstantLineTitle

A ConstantLineTitle object that specifies a constant line’s title

setVisible(boolean) Method

Specifies the value indicating the constant line’s visibility.

Declaration

public void setVisible(boolean value)

Parameters

Name Type Description
value boolean

true if the constant line is visible; otherwise, false

setVisibleInLegend(boolean) Method

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

Declaration

public void setVisibleInLegend(boolean value)

Parameters

Name Type Description
value boolean

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