Class LineInfo
java.lang.Object
com.motivewave.platform.sdk.common.BaseInfo
com.motivewave.platform.sdk.common.LineInfo
- All Implemented Interfaces:
Cloneable
Describes a horizontal line that is to be displayed in a Study.
-
Constructor Summary
ConstructorDescriptionConstructor.Constructor.Constructor.Constructor. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a clone (copy) of this object.static LineInfo
float[]
getDash()
Gets the dash style for the line (null for a solid line)Gets the color of the line (null if default line color)Gets the stroke for drawing the line when the study is selected.Gets the stroke for drawing the line.double
getValue()
Gets the y value (real value) for drawing this line.float
getWidth()
Gets the width of the line (null for a solid line)toString()
Gets string representation of this LineInfo object
-
Constructor Details
-
LineInfo
Constructor.- Parameters:
lineColor
- color of the linevalue
- y value for the horizontal linewidth
- width of the linedash
- dash style (null for solid line)
-
LineInfo
Constructor.- Parameters:
value
- y value for the horizontal linelineColor
- color of the linewidth
- width of the linedash
- dash style (null for solid line)
-
LineInfo
Constructor.- Parameters:
value
- y value for the horizontal linelineColor
- color of the linewidth
- width of the linedash
- dash style (null for solid line)
-
LineInfo
Constructor.- Parameters:
lineColor
- color of the linewidth
- width of the linedash
- dash style (null for solid line)enabled
- true if this line is enabled
-
-
Method Details
-
getValue
public double getValue()Gets the y value (real value) for drawing this line.- Returns:
- the y value (real value) for drawing this line.
-
getLineColor
Gets the color of the line (null if default line color)- Returns:
- the color of the line (null if default line color)
-
getDash
public float[] getDash()Gets the dash style for the line (null for a solid line)- Returns:
- the dash style for the line (null for a solid line)
-
getWidth
public float getWidth()Gets the width of the line (null for a solid line)- Returns:
- the width of the line (null for a solid line)
-
getStroke
Gets the stroke for drawing the line.- Returns:
- stroke used to draw the line
-
getSelectedStroke
Gets the stroke for drawing the line when the study is selected.- Returns:
- stroke used to draw the line when it is selected by the user
-
clone
Creates a clone (copy) of this object. -
toString
Gets string representation of this LineInfo object -
toJson
-
fromJson
-