|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IlpViewInteractor
View interactors manage interactions with a graphic view.
They are attached to one particular controller at a time.
When an event occurs, the view interactor first determines whether a
graphic object is located at the event position.
If so, and if the graphic object has an object interactor,
the event is dispatched to the object interactor.
Otherwise, the view interactor attempts to handle the event.
To do so, it translates atomic input events into Swing action
invocations in a given context, recognizing higher-level gestures when
applicable, and invoking the associated Swing actions.
A view interactor is not stateless but nevertheless it uses an
IlpDefaultViewInteractionContext which stores
information that the interactor needs.
IlpInteractor,
IlpViewInteractionContext,
IlpObjectInteractor,
IlpGraphicController| Method Summary | |
|---|---|
void |
attach(IlpGraphicController controller)
Attaches this view interactor to the specified controller. |
void |
detach()
Detaches this view interactor from its controller. |
IlpGraphicController |
getController()
Retrieves the controller to which this view interactor is attached. |
boolean |
isUsingObjectInteractor()
Specifies whether the events that occur on an IlpGraphic
or a representation object are delegated to an IlpObjectInteractor. |
void |
setUsingObjectInteractor(boolean use)
Specifies whether the events that occur on an IlpGraphic
or a representation object should be delegated to an
IlpObjectInteractor. |
| Methods inherited from interface ilog.cpl.interactor.IlpInteractor |
|---|
getGestureAction, getGestureButton, getGestureModifiers, getKeyStrokeAction, getPopupMenuFactory, processEvent, setGestureAction, setKeyStrokeAction, setPopupMenuFactory |
| Method Detail |
|---|
void attach(IlpGraphicController controller)
controller - The controller to which the interactor is to be attached.
IllegalStateException - if this interactor is already attached to a
controller.detach()void detach()
attach(ilog.cpl.graphic.IlpGraphicController)IlpGraphicController getController()
void setUsingObjectInteractor(boolean use)
IlpGraphic
or a representation object should be delegated to an
IlpObjectInteractor.
use - Specifies whether the interactor has to delegate events.isUsingObjectInteractor()boolean isUsingObjectInteractor()
IlpGraphic
or a representation object are delegated to an IlpObjectInteractor.
setUsingObjectInteractor(boolean)
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||