public class IlpObjectActionEvent extends ActionEvent
ACTION_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 |
---|
IlpObjectActionEvent(IlpObjectInteractionContext context,
IlpInteractionState state,
int modifiers)
Creates an object action event.
|
IlpObjectActionEvent(IlpObjectInteractionContext context,
int modifiers)
Creates an object action event.
|
Modifier and Type | Method and Description |
---|---|
IlpGraphic |
getGraphic()
Returns the graphic on which the interaction occurred.
|
IlpInteractionState |
getInteractionState()
Looks up the interaction state corresponding to the interaction context present in this event.
|
IlpPoint |
getPosition()
Returns the mouse position where the interaction ended.
|
IlpRepresentationObject |
getRepresentationObject()
Returns the representation object on which the interaction occurred.
|
IlpPoint |
getStartingPosition()
Returns the mouse position where the interaction started.
|
IlpGraphicView |
getView()
Returns the view in which the interaction occurred.
|
getActionCommand, getModifiers, getWhen, paramString
getSource
public IlpObjectActionEvent(IlpObjectInteractionContext context, int modifiers)
context
- The object interaction context which led to the triggering of the
action.modifiers
- The modifiers of the interaction which led to the triggering of
the action.NullPointerException
- if the given interaction context is
null
.public IlpObjectActionEvent(IlpObjectInteractionContext context, IlpInteractionState state, int modifiers)
context
- The object interaction context which led to the triggering of the
action.state
- The interaction's state.modifiers
- The modifiers of the interaction which led to the triggering of
the action.NullPointerException
- if the given interaction context is
null
.public IlpInteractionState getInteractionState()
null
, if the interaction
state information has not been provided to this event.public IlpGraphicView getView()
public IlpGraphic getGraphic()
null
.public IlpRepresentationObject getRepresentationObject()
public IlpPoint getPosition()
null
.public IlpPoint getStartingPosition()
null
.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.