public class IlpViewActionEvent 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 |
---|
IlpViewActionEvent(IlpViewInteractionContext context,
IlpInteractionState state,
int modifiers)
Creates a view action event.
|
IlpViewActionEvent(IlpViewInteractionContext context,
int modifiers)
Creates a view action event.
|
Modifier and Type | Method and Description |
---|---|
IlpObject |
getIlpObject()
Returns the first business object involved in the gesture
which led to the triggering of the action which receives this action event,
or
null . |
protected IlpViewInteractionContext |
getInteractionContext()
Returns the view interaction context.
|
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 first representation object involved in the gesture
which led to the triggering of the action which receives this action event,
or
null . |
Collection<IlpRepresentationObject> |
getRepresentationObjects()
Returns the collection of
IlpRepresentationObject s
involved in the gesture which led to the triggering of the action which receives
this action event. |
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 IlpViewActionEvent(IlpViewInteractionContext context, int modifiers)
context
- The view 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 IlpViewActionEvent(IlpViewInteractionContext context, IlpInteractionState state, int modifiers)
context
- The view 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 IlpPoint getPosition()
null
.public IlpPoint getStartingPosition()
null
.public Collection<IlpRepresentationObject> getRepresentationObjects()
IlpRepresentationObject
s
involved in the gesture which led to the triggering of the action which receives
this action event. The collection may be empty.public IlpRepresentationObject getRepresentationObject()
null
.
In most cases, the representation object is the one which was under the
mouse when the gesture was recognized.getRepresentationObjects()
,
getIlpObject()
public IlpObject getIlpObject()
null
.
In most cases, the business object is the one which was under the
mouse when the gesture was recognized.protected IlpViewInteractionContext getInteractionContext()
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.