Apache Flex 4.16.1 API Reference | All Packages | All Classes | Index | Frames No Frames |
ChartItemEvent

Package | mx.charts.events
Class | public class ChartItemEvent
Inheritance | ChartItemEvent flash.events.MouseEvent

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

The ChartItemEvent class represents events that are specific to the chart components, such as when a chart item is clicked.

Public Properties

| Property | Defined By
--- | --- | ---
|  | hitData : HitData [read-only] The first item in the hitSet array. | ChartItemEvent
|  | hitSet : Array A set of HitData structures describing the chart items that triggered the event. | ChartItemEvent

Public Methods

| Method | Defined By
--- | --- | ---
|  | ChartItemEvent(type:String, hitSet:Array = null, triggerEvent:MouseEvent = null, target:ChartBase = null) Constructor. | ChartItemEvent

Public Constants

| Constant | Defined By
--- | --- | ---
|  | CHANGE : String = change [static] Event type constant; indicates that the selection in the chart has changed. | ChartItemEvent
|  | ITEM_CLICK : String = itemClick [static] Event type constant; indicates that the user clicked the mouse button over a chart item representing data in the chart. | ChartItemEvent
|  | ITEM_DOUBLE_CLICK : String = itemDoubleClick [static] Event type constant; indicates that the user double-clicked the mouse button over a chart item representing data in the chart. | ChartItemEvent
|  | ITEM_MOUSE_DOWN : String = itemMouseDown [static] Event type constant; indicates that the user pressed the mouse button over a chart item representing data in the chart. | ChartItemEvent
|  | ITEM_MOUSE_MOVE : String = itemMouseMove [static] Event type constant; indicates that the user moved the mouse pointer while hovering over a chart item representing data in the chart. | ChartItemEvent
|  | ITEM_MOUSE_UP : String = itemMouseUp [static] Event type constant; indicates that the user released the mouse button while over a chart item representing data in the chart. | ChartItemEvent
|  | ITEM_ROLL_OUT : String = itemRollOut [static] Event type constant; indicates that the user rolled the mouse pointer away from a chart item representing data in the chart. | ChartItemEvent
|  | ITEM_ROLL_OVER : String = itemRollOver [static] Event type constant; indicates that the user rolled the mouse pointer over a chart item representing data in the chart. | ChartItemEvent

Property Detail

hitData | property

`hitData:HitData` [read-only]

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

The first item in the hitSet array. This is a convenience function for developers who don't care about events corresponding to multiple items.

Implementation
`public function get hitData():HitData`

hitSet | property |

`public var hitSet:Array`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

A set of HitData structures describing the chart items that triggered the event. This array is in depth order; the first item in the array is the top-most item, and the last is the deepest.

Constructor Detail

ChartItemEvent | () | Constructor

`public function ChartItemEvent(type:String, hitSet:Array = null, triggerEvent:MouseEvent = null, target:ChartBase = null)`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Constructor.

Parameters

| `type:String` — The type of the event.
| `hitSet:Array` (default = `null`)`` — An array of HitData structures describing the ChartItems that triggered the event.
| `triggerEvent:MouseEvent` (default = `null`)`` — The MouseEvent that triggered this ChartItemEvent.
| `target:ChartBase` (default = `null`)`` — The chart on which the event was triggered.

Constant Detail

CHANGE | Constant

`public static const CHANGE:String = change`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Event type constant; indicates that the selection in the chart has changed.

ITEM_CLICK | Constant |

`public static const ITEM_CLICK:String = itemClick`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Event type constant; indicates that the user clicked the mouse button over a chart item representing data in the chart.

ITEM_DOUBLE_CLICK | Constant |

`public static const ITEM_DOUBLE_CLICK:String = itemDoubleClick`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Event type constant; indicates that the user double-clicked the mouse button over a chart item representing data in the chart.

ITEM_MOUSE_DOWN | Constant |

`public static const ITEM_MOUSE_DOWN:String = itemMouseDown`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Event type constant; indicates that the user pressed the mouse button over a chart item representing data in the chart.

ITEM_MOUSE_MOVE | Constant |

`public static const ITEM_MOUSE_MOVE:String = itemMouseMove`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Event type constant; indicates that the user moved the mouse pointer while hovering over a chart item representing data in the chart.

ITEM_MOUSE_UP | Constant |

`public static const ITEM_MOUSE_UP:String = itemMouseUp`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Event type constant; indicates that the user released the mouse button while over a chart item representing data in the chart.

ITEM_ROLL_OUT | Constant |

`public static const ITEM_ROLL_OUT:String = itemRollOut`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Event type constant; indicates that the user rolled the mouse pointer away from a chart item representing data in the chart.

ITEM_ROLL_OVER | Constant |

`public static const ITEM_ROLL_OVER:String = itemRollOver`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Event type constant; indicates that the user rolled the mouse pointer over a chart item representing data in the chart.

Wed Nov 15 2017, 09:50 AM +01:00