Class GuideInfo
java.lang.Object
com.motivewave.platform.sdk.common.BaseInfo
com.motivewave.platform.sdk.common.TagInfo
com.motivewave.platform.sdk.common.IndicatorInfo
com.motivewave.platform.sdk.common.GuideInfo
- All Implemented Interfaces:
Cloneable
Describes a guide.
-
Field Summary
Fields inherited from class com.motivewave.platform.sdk.common.IndicatorInfo
font, id, label, labelColor, lineColor, lineDash, lineStroke, lineWidth, outlineColor, showLabel, showLine, showOutline, textColor, top
-
Constructor Summary
ConstructorDescriptionGuideInfo
(double value, Color lineColor, Color labelColor, Color textColor, float width, float[] dash, boolean showLine, boolean showIndicator, boolean enabled) Constructor.GuideInfo
(double value, String id, boolean showLine, float lineWidth, float[] lineDash, Color lineColor, boolean showTag, String tag, TextStyle tagStyle, boolean showLabel, String label, Font labelFont, boolean showOutline, Color outlineColor, Color textColor, Color lblColor, boolean top, boolean enabled) -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a clone (copy) of this object.static GuideInfo
float[]
getDash()
Gets the dash style for drawing the guide lineGets the stroke for drawing the guide when the study is selected.Gets the stroke for drawing the guide.double
getValue()
Gets the y-value where the guide will be displayedfloat
getWidth()
Gets the line width for drawing the guide lineboolean
Determines if the indicator should be shown for the guidetoString()
Methods inherited from class com.motivewave.platform.sdk.common.IndicatorInfo
fromJson, getFont, getId, getLabel, getLabelColor, getLineColor, getLineDash, getLineStroke, getLineWidth, getName, getOutlineColor, getTextColor, isOutlineEnabled, isShowLabel, isShowLine, isTop, isUseDefaultFont, setLabelColor, setTextColor
Methods inherited from class com.motivewave.platform.sdk.common.TagInfo
getTag, getTagBgColor, getTagFont, getTagStyle, getTagTextColor, isShowTag, isShowTagValue, setShowTag, setShowTagValue, setTag, setTagBgColor, setTagTextColor
-
Constructor Details
-
GuideInfo
public GuideInfo(double value, Color lineColor, Color labelColor, Color textColor, float width, float[] dash, boolean showLine, boolean showIndicator, boolean enabled) Constructor.- Parameters:
value
- guide value (price or study value)lineColor
- color for the guide linelabelColor
- background color for the labeltextColor
- text color displayed in the labelwidth
- width of the guide linedash
- dash pattern for the line (null if no dash)showLine
- true if the line should be displayedshowIndicator
- true if the indicator label should be displayedenabled
- true if enabled
-
GuideInfo
public GuideInfo(double value, String id, boolean showLine, float lineWidth, float[] lineDash, Color lineColor, boolean showTag, String tag, TextStyle tagStyle, boolean showLabel, String label, Font labelFont, boolean showOutline, Color outlineColor, Color textColor, Color lblColor, boolean top, boolean enabled)
-
-
Method Details
-
getValue
public double getValue()Gets the y-value where the guide will be displayed- Returns:
- y-value
-
getDash
public float[] getDash()Gets the dash style for drawing the guide line- Returns:
- Gets the dash style for drawing the guide line
-
getWidth
public float getWidth()Gets the line width for drawing the guide line- Returns:
- Gets the line width for drawing the guide line
-
isShowIndicator
public boolean isShowIndicator()Determines if the indicator should be shown for the guide- Returns:
- true if the guide indicator should be shown
-
getStroke
Gets the stroke for drawing the guide.- Returns:
- stroke for drawing the guide
-
getSelectedStroke
Gets the stroke for drawing the guide when the study is selected.- Returns:
- stroke to be used when the guide is selected
-
clone
Creates a clone (copy) of this object.- Overrides:
clone
in classIndicatorInfo
- Returns:
- clone of this object
-
toString
-
toJson
- Overrides:
toJson
in classIndicatorInfo
-
fromJson
-