Plots Class
+ + + + +Utility class used for drawing markers.
+Constructor
+Plots
+
+
+ ()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+
- Index + + +
- Methods + + +
- Properties + + + +
Item Index
+ + +Methods
+ +-
+
+
- + _clearMarkerCache + + + + + +
- + _createGroupMarkers + + + + + +
- + _createMarker + + + + + +
- + _createMarkerCache + + + + + +
- + _getDefaultStyles + + + + + +
- + _getGroupShape + + + + + +
- + _getItemColor + + + + + +
- + _getPlotDefaults + + + + + +
- + _getState + + + + + +
- + _parseMarkerStyles + + + + + +
- + _setStyles + + + + + +
- + _toggleVisible + + + + + +
- + drawPlots + + + + + +
- + drawSeries + + + + + +
- + getMarker + + + + + +
- + updateMarkerState + + + + + +
Properties
+ +-
+
+
- + _groupShapes + + + + + +
- + _markerCache + + + + + +
- + _markers + + + + + +
- + _plotDefaults + + + + + +
- + _statSyles + + + + + +
Methods
+ + +_clearMarkerCache
+
+
+ ()
+
+
+
+
+
+
+
+ private
+
+
+
+
+
+
+
+
+
+
+
+
+ Removes unused markers from the marker cache
+_createGroupMarkers
+
+
+ -
+
+
-
+
+
styles+ +
+
+
Draws a series of markers in a single shape instance.
+Parameters:
+ +-
+
+
-
+
+
styles+ Object + + + + +++ + +Set of configuration properties used to create the markers.
+
+
+
_createMarker
+
+
+ -
+
+
-
+
+
styles+ +
+
+
Creates a shape to be used as a marker.
+Parameters:
+ +-
+
+
-
+
+
styles+ Object + + + + +++ + +Hash of style properties.
+
+
+
Returns:
+ +_createMarkerCache
+
+
+ ()
+
+
+
+
+
+
+
+ private
+
+
+
+
+
+
+
+
+
+
+
+
+ Creates a cache of markers for reuse.
+_getDefaultStyles
+
+
+ ()
+
+
+
+
+
+
+
+
+
+
+
+ protected
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+ +_getGroupShape
+
+
+ -
+
+
-
+
+
shape+ +
+
+
Returns the correct group shape class.
+Parameters:
+ + +Returns:
+ +_getItemColor
+
+
+ -
+
+
-
+
+
val+ +
+
+ -
+
+
i+ +
+
+
Parses a color from an array.
+Parameters:
+ + +Returns:
+ +_getPlotDefaults
+
+
+ ()
+
+
+
+
+
+
+
+
+
+
+
+ protected
+
+
+
+
+
+
+
+
+
+
+
+
+ Gets the default values for series that use the utility. This method is used by
+the class' styles attribute's getter to get build default values.
Returns:
+ +_getState
+
+
+ -
+
+
-
+
+
type+ +
+
+
Returns marker state based on event type
+Parameters:
+ +-
+
+
-
+
+
type+ String + + + + +++ + +event type
+
+
+
Returns:
+ +_parseMarkerStyles
+
+
+ -
+
+
-
+
+
Object+ +
+
+
Combines new styles with existing styles.
+Parameters:
+ +-
+
+
-
+
+
Object+ Object + + + + +++ + +containing style properties for the marker.
+
+
+
Returns:
+ +_setStyles
+
+
+ -
+
+
-
+
+
newStyles+ +
+
+
Method used by styles setter. Overrides base implementation.
Parameters:
+ +-
+
+
-
+
+
newStyles+ Object + + + + +++ + +Hash of properties to update.
+
+
+
Returns:
+ +_toggleVisible
+
+
+ -
+
+
-
+
+
visible+ +
+
+
Toggles visibility
+Parameters:
+ +-
+
+
-
+
+
visible+ Boolean + + + + +++ + +indicates visibilitye
+
+
+
drawPlots
+
+
+ ()
+
+
+
+
+
+
+
+ protected
+
+
+
+
+
+
+
+
+
+
+
+
+ Draws the markers
+drawSeries
+
+
+ ()
+
+
+
+
+
+
+
+ protected
+
+
+
+
+
+
+
+
+
+
+
+
+ getMarker
+
+
+ -
+
+
-
+
+
styles+ +
+
+ -
+
+
order+ +
+
+ -
+
+
index+ +
+
+
Gets and styles a marker. If there is a marker in cache, it will use it. Otherwise +it will create one.
+Parameters:
+ + +Returns:
+ +updateMarkerState
+
+
+ -
+
+
-
+
+
type+ +
+
+ -
+
+
i+ +
+
+
Resizes and positions markers based on a mouse interaction.
+Properties
+ + +_groupShapes
+ Unknown
+
+
+
+
+ private
+
+
+
+
+
+
+
+
+ Pre-defined group shapes.
+_markerCache
+ Array
+
+
+
+
+ private
+
+
+
+
+
+
+
+
+ Collection of markers to be re-used on a series redraw.
+_markers
+ Array
+
+
+
+
+ private
+
+
+
+
+
+
+
+
+ Collection of markers to be used in the series.
+_plotDefaults
+ Object
+
+
+
+
+ private
+
+
+
+
+
+
+
+
+ Storage for default marker styles.
+