Skip to main content

ConstantLineStyle Class

Constant line appearance settings storage.

Declaration

public class ConstantLineStyle
extends StyleBase

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

ConstantLineStyle()

Initializes a new ConstantLineStyle class instance with default parameters.

Declaration

public ConstantLineStyle()

Methods

getStroke() Method

Returns the constant line’s stroke color.

Declaration

public Integer getStroke()

Returns

Type Description
Integer

A constant line’s color.

getThickness() Method

Returns a constant line’s thickness.

Declaration

public Float getThickness()

Returns

Type Description
Float

A constant line’s thickness, in pixels.

setStroke(Integer) Method

Specifies the constant line’s stroke color.

Declaration

public void setStroke(Integer color)

Parameters

Name Type Description
color Integer

A constant line’s color.

setThickness(Float) Method

Specifies a constant line’s thickness.

Declaration

public void setThickness(Float value)

Parameters

Name Type Description
value Float

A constant line’s thickness, in pixels.