ia.ItemEvent Class
A ia.ItemEvent
object.
Constructor
ia.ItemEvent
-
eventType
-
item
-
pixelX
-
pixelY
-
dataX
-
dataY
-
pageX
-
pageY
Parameters:
-
eventType
ObjectThe event type.
-
item
ObjectThe item associated with the event.
-
pixelX
NumberThe pixel x coordinate of the mouse.
-
pixelY
NumberThe pixel y coordinate of the mouse.
-
dataX
NumberThe data x coordinate of the mouse.
-
dataY
NumberThe data y coordinate of the mouse.
-
pageX
NumberThe page x coordinate in pixels.
-
pageY
NumberThe page y coordinate in pixels.
Item Index
Properties
- eventType
- ITEM_CLICK static
- ITEM_MOUSE_DOWN static
- ITEM_MOUSE_MOVE static
- ITEM_MOUSE_OUT static
- ITEM_MOUSE_OVER static
- ITEM_MOUSE_UP static
- NONE_ITEM_CLICK static
- obj
- symbol
- symbol
- symbol
- symbol
- symbol
- symbol
- symbol
Properties
eventType
String
The type of event.
ITEM_CLICK
String
final
static
Indicates that the user clicked the mouse button over a canvas item.
Default: "itemClick"
ITEM_MOUSE_DOWN
String
final
static
Indicates that the user pressed the mouse button over a canvas item.
Default: "itemMouseDown"
ITEM_MOUSE_MOVE
String
final
static
Indicates that the user moved the mouse pointer while hovering over a canvas.
Default: "itemMouseMove"
ITEM_MOUSE_OUT
String
final
static
Indicates that the user rolled the mouse pointer out of a canvas item.
Default: "itemMouseOut"
ITEM_MOUSE_OVER
String
final
static
Indicates that the user rolled the mouse pointer over a canvas item.
Default: "itemMouseOver"
ITEM_MOUSE_UP
String
final
static
Indicates that the user released the mouse button over a canvas item.
Default: "itemMouseUp"
NONE_ITEM_CLICK
String
final
static
Indicates that the user clicked the mouse button over a canvas but not over an item.
Default: "noneItemClick"
obj
Object
The object associated with the event.
symbol
String
The pixel y.
Default: ia.Shape.SQUARE
symbol
String
The data x.
Default: ia.Shape.SQUARE
symbol
String
The data y.
Default: ia.Shape.SQUARE
symbol
String
The page x.
Default: ia.Shape.SQUARE
symbol
String
The page y.
Default: ia.Shape.SQUARE
symbol
String
The item.
Default: ia.Shape.SQUARE
symbol
String
The pixel x.
Default: ia.Shape.SQUARE