Legend Class

The legend of the chart.

Declaration

public class Legend
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

Legend() Constructor

Initializes a new Legend class instance with default parameters.

Declaration

public Legend()

Methods

Legend.getHorizontalPosition() Method

Returns the horizontal position of the legend within the chart.

Declaration

public LegendHorizontalPosition getHorizontalPosition()

Returns

Type Description
LegendHorizontalPosition

The LegendHorizontalPosition enumeration value that specifies the horizontal position.

Legend.getOrientation() Method

Returns the legend orientation.

Declaration

public LegendOrientation getOrientation()

Returns

Type Description
LegendOrientation

The LegendOrientation enumeration value that specifies the legend orientation.

Legend.getStyle() Method

Returns the legend style.

Declaration

public LegendStyle getStyle()

Returns

Type Description
LegendStyle

The LegendStyle object that stores parameters of the legend appearance.

Legend.getVerticalPosition() Method

Returns the vertical position of the legend within the chart.

Declaration

public LegendVerticalPosition getVerticalPosition()

Returns

Type Description
LegendVerticalPosition

The LegendVerticalPosition enumeration value that specifies the vertical position.

Legend.isVisible() Method

Returns the value specifying whether the legend is visible.

Declaration

public boolean isVisible()

Returns

Type Description
boolean

true if the legend is visible; otherwise false.

Legend.setHorizontalPosition(LegendHorizontalPosition) Method

Specifies the horizontal position of the legend within the chart.

Declaration

public void setHorizontalPosition(LegendHorizontalPosition value)

Parameters

Type Name Description
LegendHorizontalPosition value

The LegendHorizontalPosition enumeration value that specifies the horizontal position.

Legend.setOrientation(LegendOrientation) Method

Specifies the legend orientation.

Declaration

public void setOrientation(LegendOrientation value)

Parameters

Type Name Description
LegendOrientation value

The LegendOrientation enumeration value that specifies the legend orientation.

Legend.setStyle(LegendStyle) Method

Specifies the legend style.

Declaration

public void setStyle(LegendStyle style)

Parameters

Type Name Description
LegendStyle style

The LegendStyle object that stores parameters of the legend appearance.

Legend.setVerticalPosition(LegendVerticalPosition) Method

Specifies the vertical position of the legend within the chart.

Declaration

public void setVerticalPosition(LegendVerticalPosition value)

Parameters

Type Name Description
LegendVerticalPosition value

The LegendVerticalPosition enumeration value that specifies the vertical position.

Legend.setVisible(boolean) Method

Specifies the value specifying whether the legend is visible.

Declaration

public void setVisible(boolean value)

Parameters

Type Name Description
boolean value

true if the legend is visible; otherwise false.