ilog.cpl.interactor
Interface IlpViewInteractor

All Superinterfaces:
IlpInteractor
All Known Implementing Classes:
IlpDefaultTableViewInteractor, IlpDefaultViewInteractor, IlpEditEquipmentObjectInteractor, IlpEditEquipmentObjectInteractor, IlpGraphEditEquipmentObjectInteractor, IlpViewsViewInteractor

public interface IlpViewInteractor
extends IlpInteractor

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.

Since:
JTGO 3.0
See Also:
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

attach

void attach(IlpGraphicController controller)
Attaches this view interactor to the specified controller.

Parameters:
controller - The controller to which the interactor is to be attached.
Throws:
IllegalStateException - if this interactor is already attached to a controller.
See Also:
detach()

detach

void detach()
Detaches this view interactor from its controller.

See Also:
attach(ilog.cpl.graphic.IlpGraphicController)

getController

IlpGraphicController getController()
Retrieves the controller to which this view interactor is attached.


setUsingObjectInteractor

void setUsingObjectInteractor(boolean use)
Specifies whether the events that occur on an IlpGraphic or a representation object should be delegated to an IlpObjectInteractor.

Parameters:
use - Specifies whether the interactor has to delegate events.
See Also:
isUsingObjectInteractor()

isUsingObjectInteractor

boolean isUsingObjectInteractor()
Specifies whether the events that occur on an IlpGraphic or a representation object are delegated to an IlpObjectInteractor.

See Also:
setUsingObjectInteractor(boolean)


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.