StaticCrosshairLabelPosition Class

A Crosshair's Label has a static position.

Syntax

public class StaticCrosshairLabelPosition
extends CrosshairLabelPositionBase

Static crosshair label

Inheritance

Object
ChartElement
CrosshairLabelPositionBase
StaticCrosshairLabelPosition

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

StaticCrosshairLabelPosition() Constructor

Initializes a new StaticLabelPosition class instance with default parameters.

Syntax

public StaticCrosshairLabelPosition()

Methods

getHorizontalAlignment() Method

Returns the value that specifies a label's horizontal alignment.

Syntax

public LabelPositionHorizontalAlignment getHorizontalAlignment()

Returns

Type Description
LabelPositionHorizontalAlignment

The LabelPositionHorizontalAlignment enumeration value that defines a Crosshair Label's horizontal alignment.

getVerticalAlignment() Method

Returns the value that specifies a label's vertical alignment.

Syntax

public LabelPositionVerticalAlignment getVerticalAlignment()

Returns

Type Description
LabelPositionVerticalAlignment

The LabelPositionVerticalAlignment enumeration value that defines a Crosshair Label's vertical alignment.

setHorizontalAlignment(LabelPositionHorizontalAlignment) Method

Specifies the value that specifies a label's horizontal alignment.

Syntax

public void setHorizontalAlignment(LabelPositionHorizontalAlignment alignment)

Parameters

Type Name Description
LabelPositionHorizontalAlignment alignment

The LabelPositionHorizontalAlignment enumeration value that defines a Crosshair Label's horizontal alignment.

setVerticalAlignment(LabelPositionVerticalAlignment) Method

Specifies the value that specifies a label's vertical alignment.

Syntax

public void setVerticalAlignment(LabelPositionVerticalAlignment alignment)

Parameters

Type Name Description
LabelPositionVerticalAlignment alignment

The LabelPositionVerticalAlignment enumeration value that defines a Crosshair Label's vertical alignment.