<abstract> new ChartPanelObject()
The base class for all objects on the chart panel (drawings, plots, ...).
Extends
Members
-
<readonly> chart :StockChartX.Chart
-
Gets parent chart.
Type:
-
chartPanel :StockChartX.ChartPanel
-
Gets/Sets parent chart panel.
Type:
-
<readonly> panelValueScale :StockChartX.ChartPanelValueScale
-
Gets chart panel value scale.
Type:
-
<readonly> projection :StockChartX.Projection
-
Gets projection object to convert coordinates.
Type:
-
visible :boolean
-
Gets/Sets flag that indicates whether drawing is visible.
Type:
- boolean
Methods
-
draw()
-
Draws object.
-
fire(event, newValue, oldValue)
-
Fires event.
Parameters:
Name Type Argument Description event
String The event name. newValue
* <optional>
The new property value. oldValue
* <optional>
The old property value. - Inherited From:
Example
obj.fire('custom_event', 'new value', 'old value');
-
saveState()
-
Loads chart panel object state.
Returns:
- Type
- object
-
saveState()
-
Saves chart panel object state.
Returns:
- Type
- object
-
suppressEvents(suppress)
-
Suppresses/Allows all events.
Parameters:
Name Type Argument Default Description suppress
boolean <optional>
true The flag to suppress or resume events raising. - Inherited From:
Returns:
The old value.- Type
- boolean
Examples
Suppress events
obj.suppressEvents();
Resume events
obj.suppressEvents(false);