public class IlvCompositeActionEvent extends ActionEvent
IlvCompositeGraphic
instance,
the action event received by the action is an IlvCompositeActionEvent
instance.
The event allows the action to find out the context of the interaction
which triggered it.IlvCompositeGraphic
,
Serialized FormACTION_FIRST, ACTION_LAST, ACTION_PERFORMED, ALT_MASK, CTRL_MASK, META_MASK, SHIFT_MASK
ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, id, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK, WINDOW_FOCUS_EVENT_MASK, WINDOW_STATE_EVENT_MASK
source
Constructor and Description |
---|
IlvCompositeActionEvent(MouseEvent mouseEvent,
String command,
IlvComposite compositeNode,
int childIndex,
IlvCompositeContext compositeContext,
IlvObjectInteractorContext objectIteractorContext)
Constructs an
IlvCompositeActionEvent object with modifier keys. |
Modifier and Type | Method and Description |
---|---|
int |
getChildIndex()
Returns the index of the child on which the event occurred
|
IlvCompositeContext |
getCompositeContext()
Returns the composite context of this event
|
IlvComposite |
getCompositeNode()
Returns the
IlvCompositeGraphic instance on which the event occurred |
IlvObjectInteractorContext |
getObjectInteractorContext()
Returns the object interactor which triggered the event
|
IlvPoint |
getPoint()
Returns the point in manager coordinates where this event occurred
|
IlvTransformer |
getTransformer()
Returns the transformer of the interactor context.
|
getActionCommand, getModifiers, getWhen, paramString
getSource
public IlvCompositeActionEvent(MouseEvent mouseEvent, String command, IlvComposite compositeNode, int childIndex, IlvCompositeContext compositeContext, IlvObjectInteractorContext objectIteractorContext)
IlvCompositeActionEvent
object with modifier keys.
Note that passing in an invalid id
results in
unspecified behavior.
mouseEvent
- mouse event that triggered this actioncommand
- a string that may specify a command (possibly one
of several) associated with the eventcompositeNode
- the IlvCompositeGraphic
on which the event occurredchildIndex
- index of the child of the composite graphic on which the event occurredcompositeContext
- allows the action listeners to change the SDM model properties of the object being
represented by the composite graphicobjectIteractorContext
- the context passed to the IlvCompositeInteractor
IlvCompositeContext
,
IlvCompositeInteractor
public IlvComposite getCompositeNode()
IlvCompositeGraphic
instance on which the event occurredpublic IlvObjectInteractorContext getObjectInteractorContext()
public IlvCompositeContext getCompositeContext()
IlvCompositeContext
public IlvTransformer getTransformer()
public IlvPoint getPoint()
public int getChildIndex()
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.