public interface IlvInteractiveBehavior
IlvBehavior
that want to handle mouse/keyboard events.
For an interactive behavior to receive events, an
IlvGroupInteractor
must be installed one or several graphic
elements of the group to which the behavior is attached.
Modifier and Type | Method and Description |
---|---|
boolean |
processEvent(IlvGroup group,
IlvGraphicElement element,
AWTEvent event,
IlvObjectInteractorContext context)
This method is called by the
IlvGroupInteractor when a mouse
or keyboard event occurs in an element of a group that has
IlvBehavior objects implementing this interface. |
boolean processEvent(IlvGroup group, IlvGraphicElement element, AWTEvent event, IlvObjectInteractorContext context)
IlvGroupInteractor
when a mouse
or keyboard event occurs in an element of a group that has
IlvBehavior
objects implementing this interface.group
- the group containing the element in which the event occurred.element
- the graphic element in which the event occurred.event
- the event, which can be a MouseEvent
or a
KeyEvent
.context
- the interactor context, which can be used to get the view
transformer.true
if the event was actually processed, or
false
if the event was ignored.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.