Class: GestureArray

StockChartX. GestureArray


new GestureArray(gestures, context, hitTestFunc)

Represents a collection of gestures
Parameters:
Name Type Argument Description
gestures StockChartX.Gesture | Array.<StockChartX.Gesture> The gesture or array of gestures to add into the collection.
context Object <optional>
Function's 'this' context.
hitTestFunc StockChartX.Gesture~GestureHitTestHandler <optional>
The hit test function.

Members


gestures :Array.<StockChartX.Gesture>

An array of gestures.
Type:

Methods


add(gesture)

Adds gesture(s) into the collection.
Parameters:
Name Type Description
gesture StockChartX.Gesture | Array.<StockChartX.Gesture> The gesture or an array of gestures to add into the collection.
See:

handleEvent(event)

Iterates through inner gestures and passes event to it. Breaks if event is handled by gesture.
Parameters:
Name Type Description
event StockChartX.WindowEvent The event object.
Returns:
True if event was handled by some gesture, false otherwise.
Type
boolean

remove(gesture)

Removes gesture(s) from the collection.
Parameters:
Name Type Description
gesture StockChartX.Gesture | Array.<StockChartX.Gesture> The gesture or an array of gestures to remove.
See: