Class PathInfo
java.lang.Object
com.motivewave.platform.sdk.common.BaseInfo
com.motivewave.platform.sdk.common.TagInfo
com.motivewave.platform.sdk.common.SeriesInfo
com.motivewave.platform.sdk.common.PathInfo
- All Implemented Interfaces:
Cloneable
Describes how to display a Path on a graph.
-
Constructor Summary
ConstructorsConstructorDescriptionPathInfo
(Enums.PathType type, Color c, Color c2, Color c3, Color c4, Enums.ColorPolicy colorPolicy, double gradientCenter, Enums.ShadeType shadeType, float strokeWidth, float[] dash, Enums.PointType pointType, Enums.Size pointSize, int maxPoints, boolean continuous, int barCenter, double fixedWidth, boolean showTag, boolean showTagValue, String tag, TextStyle tagStyle, boolean enabled) Constructor.PathInfo
(Color c, float width, float[] dash, boolean enabled, boolean continuous, boolean showBars, int barCenter, Integer fixedWidth) Constructor.PathInfo
(Color c, Color c2, Enums.ColorPolicy colorPolicy, Double gradientCenter, Enums.ShadeType shadeType, float width, float[] dash, int maxPoints, boolean allPoints, boolean enabled, boolean continuous, boolean showBars, int barCenter, Integer fixedWidth) ConstructorPathInfo
(Color c, Color c2, Enums.ColorPolicy colorPolicy, Double gradientCenter, Enums.ShadeType shadeType, float width, float[] dash, Enums.PointType pointType, Enums.Size pointSize, int maxPoints, boolean allPoints, boolean enabled, boolean continuous, boolean showBars, int barCenter, Integer fixedWidth) Constructor.PathInfo
(Color c, Color c2, Enums.ColorPolicy colorPolicy, Double gradientCenter, Enums.ShadeType shadeType, Enums.PointType pointType, Enums.Size pointSize, int maxPoints, boolean allPoints, boolean enabled, boolean continuous, boolean showBars, int barCenter, Integer fixedWidth) Constructor.PathInfo
(Color c, Color c2, Enums.PointType pointType, Enums.Size pointSize, int maxPoints, boolean allPoints, boolean enabled, boolean continuous, boolean showBars, int barCenter, Integer fixedWidth) Constructor.PathInfo
(Color c, Color c2, Color c3, Color c4, Enums.ColorPolicy colorPolicy, Double gradientCenter, Enums.ShadeType shadeType, float width, float[] dash, boolean showPath, boolean showPoints, Enums.PointType pointType, Enums.Size pointSize, int maxPoints, boolean allPoints, boolean enabled, boolean continuous, boolean showBars, int barCenter, Integer fixedWidth, boolean showTag, boolean showTagValue, String tag, Font tagFont, Color tagTextColor, Color tagBgColor) Constructor.PathInfo
(Color c, Color c2, Color c3, Color c4, Enums.ColorPolicy colorPolicy, Double gradientCenter, Enums.ShadeType shadeType, float width, float[] dash, int maxPoints, boolean allPoints, boolean enabled, boolean continuous, boolean showBars, int barCenter, Integer fixedWidth) ConstructorPathInfo
(Color c, Color c2, Color c3, Color c4, Enums.ColorPolicy colorPolicy, Double gradientCenter, Enums.ShadeType shadeType, float width, float[] dash, Enums.PointType pointType, Enums.Size pointSize, int maxPoints, boolean allPoints, boolean enabled, boolean continuous, boolean showBars, int barCenter, Integer fixedWidth) Constructor.PathInfo
(Color c, Color c2, Color c3, Color c4, Enums.ColorPolicy colorPolicy, Double gradientCenter, Enums.ShadeType shadeType, Enums.PointType pointType, Enums.Size pointSize, int maxPoints, boolean allPoints, boolean enabled, boolean continuous, boolean showBars, int barCenter, Integer fixedWidth) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a clone (copy) of this object.static PathInfo
Gets the size of the path points.Gets the type of the path points.Gets the stroke for drawing the path when the study is selected.Indicates the shade type for shading above/below the path.Gets the stroke for drawing the path.getType()
boolean
Indicates if the path should be shown as bars.boolean
Indicates if the path lines should be shown.boolean
Indicates if the points should be displayed.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 stylesetShowTag
(boolean showTag) Creates a copy of the object and sets the showTag attribute.setShowTagValue
(boolean showTagValue) Creates a copy of the object and sets the showTagValue attribute.Creates a copy of the object and sets the tag attribute.setWidth
(float width) Creates a copy of the object and sets the width of the lines connecting path points.Methods inherited from class com.motivewave.platform.sdk.common.SeriesInfo
getBarCenter, getColor, getColor2, getColor3, getColor4, getColorPolicy, getDash, getFixedWidth, getFixedWidthDouble, getGradientCenter, getMaxPoints, getStrokeWidth, getWidth, isContinuous, isGradient, isShowAllPoints, setStrokeWidth
Methods inherited from class com.motivewave.platform.sdk.common.TagInfo
getTag, getTagBgColor, getTagFont, getTagStyle, getTagTextColor, isShowTag, isShowTagValue, setTagBgColor, setTagTextColor
-
Constructor Details
-
PathInfo
public PathInfo(Color c, float width, float[] dash, boolean enabled, boolean continuous, boolean showBars, int barCenter, Integer fixedWidth) Constructor. Creates a path info for displaying a series of points connected by lines.- Parameters:
c
- color of the pathwidth
- width of line used to connect the path pointsdash
- dash style (null if solid line)enabled
- true if this path should be displayedcontinuous
- true if this path is continuous even with missing valuesshowBars
- true if the path should be shown as barsbarCenter
- center point for drawing barsfixedWidth
- fixed with of the bars
-
PathInfo
public PathInfo(Color c, Color c2, Enums.ColorPolicy colorPolicy, Double gradientCenter, Enums.ShadeType shadeType, float width, float[] dash, int maxPoints, boolean allPoints, boolean enabled, boolean continuous, boolean showBars, int barCenter, Integer fixedWidth) Constructor- Parameters:
c
- primary path colorc2
- secondary path colorcolorPolicy
- policy for applying colors to the pathgradientCenter
- center point for the gradient, null if automaticshadeType
- type of shading for pathwidth
- width of the lines connecting the path pointsdash
- dash style (null for solid line)maxPoints
- max points to displayallPoints
- true if all points should be displayedenabled
- true if this path should be displayedcontinuous
- true if this path is continuous even with missing valuesshowBars
- true if this path should be shown as barsbarCenter
- center point for drawing barsfixedWidth
- fixed width for the bars
-
PathInfo
public PathInfo(Color c, Color c2, Color c3, Color c4, Enums.ColorPolicy colorPolicy, Double gradientCenter, Enums.ShadeType shadeType, float width, float[] dash, int maxPoints, boolean allPoints, boolean enabled, boolean continuous, boolean showBars, int barCenter, Integer fixedWidth) Constructor- Parameters:
c
- primary path colorc2
- secondary path colorc3
- tertiary path colorc4
- quaternary path colorcolorPolicy
- policy for applying colors to the pathgradientCenter
- center point for the gradient, null if automaticshadeType
- type of shading for pathwidth
- width of the lines connecting the path pointsdash
- dash style (null for solid line)maxPoints
- max points to displayallPoints
- true if all points should be displayedenabled
- true if this path should be displayedcontinuous
- true if this path is continuous even with missing valuesshowBars
- true if this path should be shown as barsbarCenter
- center point for drawing barsfixedWidth
- fixed width for the bars
-
PathInfo
public PathInfo(Color c, Color c2, Enums.PointType pointType, Enums.Size pointSize, int maxPoints, boolean allPoints, boolean enabled, boolean continuous, boolean showBars, int barCenter, Integer fixedWidth) Constructor.- Parameters:
c
- color for lines that are trending upwardc2
- color for lines that are trending downwardpointType
- type of point to displaypointSize
- size of the pointsmaxPoints
- max points to displayallPoints
- true if all points should be displayedenabled
- true if this path should be displayedcontinuous
- true if this path is continuous even with missing valuesshowBars
- true if this path should be shown as barsbarCenter
- center point for drawing barsfixedWidth
- fixed width for the bars
-
PathInfo
public PathInfo(Color c, Color c2, Enums.ColorPolicy colorPolicy, Double gradientCenter, Enums.ShadeType shadeType, Enums.PointType pointType, Enums.Size pointSize, int maxPoints, boolean allPoints, boolean enabled, boolean continuous, boolean showBars, int barCenter, Integer fixedWidth) Constructor.- Parameters:
c
- color for lines that are trending upwardc2
- color for lines that are trending downwardcolorPolicy
- policy for applying colors to the pathgradientCenter
- center point for the gradient, null if automaticshadeType
- type of shading for pathpointType
- type of point to displaypointSize
- size of the pointsmaxPoints
- max points to displayallPoints
- true if all points should be displayedenabled
- true if this path should be displayedcontinuous
- true if this path is continuous even with missing valuesshowBars
- true if this path should be shown as barsbarCenter
- center point for drawing barsfixedWidth
- fixed width for the bars
-
PathInfo
public PathInfo(Color c, Color c2, Color c3, Color c4, Enums.ColorPolicy colorPolicy, Double gradientCenter, Enums.ShadeType shadeType, Enums.PointType pointType, Enums.Size pointSize, int maxPoints, boolean allPoints, boolean enabled, boolean continuous, boolean showBars, int barCenter, Integer fixedWidth) Constructor.- Parameters:
c
- primary path colorc2
- secondary path colorc3
- tertiary path colorc4
- quaternary path colorcolorPolicy
- policy for applying colors to the pathgradientCenter
- center point for the gradient, null if automaticshadeType
- type of shading for pathpointType
- type of point to displaypointSize
- size of the pointsmaxPoints
- max points to displayallPoints
- true if all points should be displayedenabled
- true if this path should be displayedcontinuous
- true if this path is continuous even with missing valuesshowBars
- true if this path should be shown as barsbarCenter
- center point for drawing barsfixedWidth
- fixed width for the bars
-
PathInfo
public PathInfo(Color c, Color c2, Enums.ColorPolicy colorPolicy, Double gradientCenter, Enums.ShadeType shadeType, float width, float[] dash, Enums.PointType pointType, Enums.Size pointSize, int maxPoints, boolean allPoints, boolean enabled, boolean continuous, boolean showBars, int barCenter, Integer fixedWidth) Constructor. Creates a path info for displaying the lines and points of the path.- Parameters:
c
- color for lines that are trending upwardc2
- color for lines that are trending downwardcolorPolicy
- policy for applying colors to the pathgradientCenter
- center point for the gradient, null if automaticshadeType
- type of shading for pathwidth
- width of the lines connecting the path pointsdash
- dash style (null for solid line)pointType
- type of point to displaypointSize
- size of the pointsmaxPoints
- max points to displayallPoints
- true if all points should be displayedenabled
- true if this path should be displayedcontinuous
- true if this path is continuous even with missing valuesshowBars
- true if this path should be shown as barsbarCenter
- center point for drawing barsfixedWidth
- fixed width for the bars
-
PathInfo
public PathInfo(Color c, Color c2, Color c3, Color c4, Enums.ColorPolicy colorPolicy, Double gradientCenter, Enums.ShadeType shadeType, float width, float[] dash, Enums.PointType pointType, Enums.Size pointSize, int maxPoints, boolean allPoints, boolean enabled, boolean continuous, boolean showBars, int barCenter, Integer fixedWidth) Constructor. Creates a path info for displaying the lines and points of the path.- Parameters:
c
- primary colorc2
- secondary colorc3
- tertiary colorc4
- quaternary colorcolorPolicy
- policy for applying colors to the pathgradientCenter
- center point for the gradient, null if automaticshadeType
- type of shading for pathwidth
- width of the lines connecting the path pointsdash
- dash style (null for solid line)pointType
- type of point to displaypointSize
- size of the pointsmaxPoints
- max points to displayallPoints
- true if all points should be displayedenabled
- true if this path should be displayedcontinuous
- true if this path is continuous even with missing valuesshowBars
- true if this path should be shown as barsbarCenter
- center point for drawing barsfixedWidth
- fixed width for the bars
-
PathInfo
public PathInfo(Color c, Color c2, Color c3, Color c4, Enums.ColorPolicy colorPolicy, Double gradientCenter, Enums.ShadeType shadeType, float width, float[] dash, boolean showPath, boolean showPoints, Enums.PointType pointType, Enums.Size pointSize, int maxPoints, boolean allPoints, boolean enabled, boolean continuous, boolean showBars, int barCenter, Integer fixedWidth, boolean showTag, boolean showTagValue, String tag, Font tagFont, Color tagTextColor, Color tagBgColor) Constructor. Creates a path info for displaying the lines and points of the path.- Parameters:
c
- primary colorc2
- secondary colorc3
- tertiary colorc4
- quaternary colorcolorPolicy
- policy for applying colors to the pathgradientCenter
- center point for the gradient, null if automaticshadeType
- type of shading for pathwidth
- width of the lines connecting the path pointsdash
- dash style (null for solid line)pointType
- type of point to displaypointSize
- size of the pointsmaxPoints
- max points to displayallPoints
- true if all points should be displayedenabled
- true if this path should be displayedcontinuous
- true if this path is continuous even with missing valuesshowBars
- true if this path should be shown as barsbarCenter
- center point for drawing barsfixedWidth
- fixed width for the barsshowTag
- true if the tag should be displayedshowTagValue
- true if the value should be displayed in the tagtag
- text for the tagtagFont
- font for the tagtagTextColor
- color for the tag text (null for the path color)tagBgColor
- color for the tag background (null for no background)
-
PathInfo
public PathInfo(Enums.PathType type, Color c, Color c2, Color c3, Color c4, Enums.ColorPolicy colorPolicy, double gradientCenter, Enums.ShadeType shadeType, float strokeWidth, float[] dash, Enums.PointType pointType, Enums.Size pointSize, int maxPoints, boolean continuous, int barCenter, double fixedWidth, boolean showTag, boolean showTagValue, String tag, TextStyle tagStyle, boolean enabled) Constructor. Creates a path info for displaying the lines and points of the path.- Parameters:
c
- primary colorc2
- secondary colorc3
- tertiary colorc4
- quaternary colorcolorPolicy
- policy for applying colors to the pathgradientCenter
- center point for the gradient, null if automaticshadeType
- type of shading for pathdash
- dash style (null for solid line)pointType
- type of point to displaypointSize
- size of the pointsmaxPoints
- max points to display (0 for all points)continuous
- true if this path is continuous even with missing valuesbarCenter
- center point for drawing barsfixedWidth
- fixed width for the barsshowTag
- true if the tag should be displayedshowTagValue
- true if the value should be displayed in the tagtag
- text for the tagenabled
- true if this path should be displayedwidth
- width of the lines connecting the path pointsshowBars
- true if this path should be shown as barstagFont
- font for the tagtagTextColor
- color for the tag text (null for the path color)tagBgColor
- color for the tag background (null for no background)
-
-
Method Details
-
getType
-
setColor
Creates a copy of the object and sets main color of the path.- Overrides:
setColor
in classSeriesInfo
- Parameters:
color
- main color- Returns:
- copy of the object
-
setDash
Creates a copy of the object and sets dash style- Overrides:
setDash
in classSeriesInfo
- Parameters:
dash
- dash style- Returns:
- copy of the object
-
setWidth
Creates a copy of the object and sets the width of the lines connecting path points.- Overrides:
setWidth
in classSeriesInfo
- Parameters:
width
- width of the path line- Returns:
- copy of the object with the width set
-
isShowPoints
public boolean isShowPoints()Indicates if the points should be displayed.- Returns:
- true if the points should be drawn
-
isShowPath
public boolean isShowPath()Indicates if the path lines should be shown.- Returns:
- true if the path should be shown
-
getPointSize
Gets the size of the path points.- Returns:
- the point size
-
getPointType
Gets the type of the path points.- Returns:
- the type of points to draw for the path points
-
getShadeType
Indicates the shade type for shading above/below the path.- Returns:
- shade type for shading above/below the path
-
isShowAsBars
public boolean isShowAsBars()Indicates if the path should be shown as bars.- Returns:
- true if the path should be shown as bars
-
getStroke
Gets the stroke for drawing the path.- Returns:
- the stroke used to draw the path
-
getSelectedStroke
Gets the stroke for drawing the path when the study is selected.- Returns:
- the stroke used to draw the path when it is selected
-
setShowTag
Creates a copy of the object and sets the showTag attribute.- Overrides:
setShowTag
in classTagInfo
- Parameters:
showTag
- true if the tag should be displayed- Returns:
- copy of the object
-
setShowTagValue
Creates a copy of the object and sets the showTagValue attribute.- Overrides:
setShowTagValue
in classTagInfo
- Parameters:
showTag
- true if the tag value should be displayed- Returns:
- copy of the object
-
setTag
Creates a copy of the object and sets the tag attribute. -
clone
Creates a clone (copy) of this object.- Overrides:
clone
in classSeriesInfo
- Returns:
- clone of this object
-
toJson
- Overrides:
toJson
in classSeriesInfo
-
fromJson
-