Skip to main content

CrosshairLineStyle Class

The crosshair line style’s settings storage.

Declaration

public class CrosshairLineStyle
extends TextElementStyleBase

Remarks

The CrosshairLineStyle class configures the following parameters:

crosshair line style settings

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

CrosshairLineStyle()

Initializes a new CrosshairLineStyle class instance with default parameters.

Declaration

public CrosshairLineStyle()

Methods

getLabelBackgroundColor() Method

Returns the crosshair axis label’s color.

Declaration

public Integer getLabelBackgroundColor()

Returns

Type Description
Integer

The crosshair axis label’s color.

getStroke() Method

Returns crosshair line’s stroke color.

Declaration

public Integer getStroke()

Returns

Type Description
Integer

The crosshair line’s stroke color.

getThickness() Method

Returns the crosshair’s line thickness.

Declaration

public Float getThickness()

Returns

Type Description
Float

Line thickness in pixels.

setLabelBackgroundColor(Integer) Method

Specifies the crosshair axis label’s color.

Declaration

public void setLabelBackgroundColor(Integer color)

Parameters

Name Type Description
color Integer

The crosshair axis label’s color.

setStroke(Integer) Method

Specifies crosshair line’s stroke color.

Declaration

public void setStroke(Integer stroke)

Parameters

Name Type Description
stroke Integer

The crosshair line’s stroke color.

setThickness(Float) Method

Specifies the crosshair’s line thickness.

Declaration

public void setThickness(Float thickness)

Parameters

Name Type Description
thickness Float

Line thickness in pixels.