Class SeriesInfo
java.lang.Object
com.motivewave.platform.sdk.common.BaseInfo
com.motivewave.platform.sdk.common.TagInfo
com.motivewave.platform.sdk.common.SeriesInfo
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
PathInfo
,PriceBarInfo
-
Constructor Summary
ModifierConstructorDescriptionprotected
SeriesInfo
(Color color, Color color2, Color color3, Color color4, float[] dash, float strokeWidth, double fixedWidth, double gradientCenter, boolean continuous, int maxPoints, int barCenter, Enums.ColorPolicy colorPolicy, String tag, boolean showTag, boolean showTagValue, TextStyle style, boolean enabled) -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a clone (copy) of this object.int
Gets the center point for drawing bars (positive/negative bars).getColor()
Gets the main color of the path lines and points.Gets the secondary color of the path lines and points.Gets the tertiary color of the path lines and points.Gets the quaternary color of the path lines and points.Indicates the policy for applying colors to the series of values.float[]
getDash()
Gets the dash style for the lines connecting the path points (null for solid line).Gets the fixed width for drawing the bars (null for dynamic width).double
Gets the gradient center (real value).int
Gets the max points to show.float
Gets the width of the lines connecting the path points.float
getWidth()
Deprecated.use getStrokeWidth insteadboolean
Indicates if the series is continuous.boolean
Deprecated.use getColorPolicy insteadboolean
Indicates if all points should be shown.Creates a copy of the object and sets main color of the path.setDash
(float[] dash) Creates a copy of the object and sets dash stylesetStrokeWidth
(float width) Creates a copy of the object and sets the width of the lines connecting path points.setWidth
(float width) Deprecated.use getStrokeWidth insteadMethods inherited from class com.motivewave.platform.sdk.common.TagInfo
getTag, getTagBgColor, getTagFont, getTagStyle, getTagTextColor, isShowTag, isShowTagValue, setShowTag, setShowTagValue, setTag, setTagBgColor, setTagTextColor
-
Constructor Details
-
SeriesInfo
protected SeriesInfo(Color color, Color color2, Color color3, Color color4, float[] dash, float strokeWidth, double fixedWidth, double gradientCenter, boolean continuous, int maxPoints, int barCenter, Enums.ColorPolicy colorPolicy, String tag, boolean showTag, boolean showTagValue, TextStyle style, boolean enabled)
-
-
Method Details
-
getColor
Gets the main color of the path lines and points.- Returns:
- main color for drawing the path
-
setColor
Creates a copy of the object and sets main color of the path.- Parameters:
color
- main color- Returns:
- copy of the object
-
getColor2
Gets the secondary color of the path lines and points. Typically upward trending points use color and downward trending use color2- Returns:
- color for downward trending parts of the path
-
getColor3
Gets the tertiary color of the path lines and points. The purpose of this color depends on the Color Policy- Returns:
- tertiary color
-
getColor4
Gets the quaternary color of the path lines and points. The purpose of this color depends on the Color Policy- Returns:
- quaternary color
-
getDash
public float[] getDash()Gets the dash style for the lines connecting the path points (null for solid line).- Returns:
- dash style
-
setDash
Creates a copy of the object and sets dash style- Parameters:
dash
- dash style- Returns:
- copy of the object
-
getWidth
Deprecated.use getStrokeWidth insteadGets the width of the lines connecting the path points.- Returns:
- the width of the path line
-
getStrokeWidth
public float getStrokeWidth()Gets the width of the lines connecting the path points.- Returns:
- the width of the path line
-
setWidth
Deprecated.use getStrokeWidth insteadCreates a copy of the object and sets the width of the lines connecting path points.- Parameters:
width
- width of the path line- Returns:
- copy of the object with the width set
-
setStrokeWidth
Creates a copy of the object and sets the width of the lines connecting path points.- Parameters:
width
- width of the path line- Returns:
- copy of the object with the width set
-
getMaxPoints
public int getMaxPoints()Gets the max points to show.- Returns:
- the maximum number of points to show.
-
isShowAllPoints
public boolean isShowAllPoints()Indicates if all points should be shown.- Returns:
- true if all points should be shown.
-
isContinuous
public boolean isContinuous()Indicates if the series is continuous.- Returns:
- true if the series is continuous
-
getColorPolicy
Indicates the policy for applying colors to the series of values.- Returns:
- color policy for applying colors
-
isGradient
Deprecated.use getColorPolicy insteadIndicates if the color is a gradient.- Returns:
- true if the path color is a gradient
-
getGradientCenter
Gets the gradient center (real value). If this value is null, then the gradient will center will be determined automatically.- Returns:
- gradient center (null if automatically determined)
-
getBarCenter
public int getBarCenter()Gets the center point for drawing bars (positive/negative bars).- Returns:
- center point for drawing bars
-
getFixedWidth
Gets the fixed width for drawing the bars (null for dynamic width). This property is only used if show as bars is true.- Returns:
- fixed bar width (null for dynamic)
-
getFixedWidthDouble
public double getFixedWidthDouble() -
clone
Creates a clone (copy) of this object. -
toJson
-