ilog.cpl.graphic.views
Class IlpViewsViewInteractor

java.lang.Object
  extended by ilog.cpl.interactor.IlpAbstractInteractor
      extended by ilog.cpl.interactor.IlpDefaultViewInteractor
          extended by ilog.cpl.graphic.views.IlpViewsViewInteractor
All Implemented Interfaces:
IlpInteractor, IlpViewInteractor
Direct Known Subclasses:
IlpGraphEditEquipmentObjectInteractor

public class IlpViewsViewInteractor
extends IlpDefaultViewInteractor
implements IlpViewInteractor

This is a view interactor which encapsulates an ILOG JViews view interactor.

Note: This interactor can only be used with an IlpViewsView object.


Constructor Summary
IlpViewsViewInteractor()
          Default constructor
IlpViewsViewInteractor(IlvManagerViewInteractor interactor)
          Creates the interactor.
 
Method Summary
 void attach(IlpGraphicController controller)
          Attaches this interactor to the view.
protected  boolean delegateEvent(IlpInteractionContext ctxt, MouseEvent e)
          Redefined to delegate event management to an object interactor.
 void detach()
          Detaches this interactor from the view.
 Action getGestureAction(IlpGesture gesture)
          Provides default gesture actions, depending on the view.
 IlvManagerViewInteractor getViewsInteractor()
          Returns the encapsulated ILOG JViews interactor.
 boolean processEvent(IlpInteractionContext context, AWTEvent event)
          Process an event.
 void setViewsInteractor(IlvManagerViewInteractor interactor)
          Sets the view interactor.
 
Methods inherited from class ilog.cpl.interactor.IlpDefaultViewInteractor
createActionEvent, getController, GetDefaultActionEventFactory, getInteractionState, isUsingObjectInteractor, setUsingObjectInteractor
 
Methods inherited from class ilog.cpl.interactor.IlpAbstractInteractor
createActionEvent, displayPopupMenu, getAction, getAction, getActionEventFactory, getGestureAction, getGestureButton, getGestureModifiers, getKeyStrokeAction, getPopupMenuFactory, manageSelection, processGesture, processKeyEvent, processMouseOrFocusEvent, setAction, setAction, setActionEventFactory, setGestureAction, setGestureAction, setKeyStrokeAction, setPopupMenuFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ilog.cpl.interactor.IlpViewInteractor
getController, isUsingObjectInteractor, setUsingObjectInteractor
 
Methods inherited from interface ilog.cpl.interactor.IlpInteractor
getGestureButton, getGestureModifiers, getKeyStrokeAction, getPopupMenuFactory, setGestureAction, setKeyStrokeAction, setPopupMenuFactory
 

Constructor Detail

IlpViewsViewInteractor

public IlpViewsViewInteractor(IlvManagerViewInteractor interactor)
Creates the interactor.


IlpViewsViewInteractor

public IlpViewsViewInteractor()
Default constructor

Method Detail

getViewsInteractor

public IlvManagerViewInteractor getViewsInteractor()
Returns the encapsulated ILOG JViews interactor.


setViewsInteractor

public void setViewsInteractor(IlvManagerViewInteractor interactor)
Sets the view interactor.

Parameters:
interactor - Interactor

attach

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

Specified by:
attach in interface IlpViewInteractor
Overrides:
attach in class IlpDefaultViewInteractor
Parameters:
controller - Graphic controller
See Also:
IlpDefaultViewInteractor.detach()

detach

public void detach()
Detaches this interactor from the view.

Specified by:
detach in interface IlpViewInteractor
Overrides:
detach in class IlpDefaultViewInteractor
See Also:
IlpDefaultViewInteractor.attach(ilog.cpl.graphic.IlpGraphicController)

processEvent

public boolean processEvent(IlpInteractionContext context,
                            AWTEvent event)
Process an event.

Specified by:
processEvent in interface IlpInteractor
Overrides:
processEvent in class IlpDefaultViewInteractor
Parameters:
context - Interaction context
event - Event
See Also:
IlpAbstractInteractor.processKeyEvent(ilog.cpl.interactor.IlpInteractionContext, java.awt.event.KeyEvent), IlpAbstractInteractor.delegateEvent(ilog.cpl.interactor.IlpInteractionContext, java.awt.event.MouseEvent), IlpAbstractInteractor.displayPopupMenu(ilog.cpl.interactor.IlpInteractionContext, java.awt.event.MouseEvent), IlpAbstractInteractor.processMouseOrFocusEvent(ilog.cpl.interactor.IlpInteractionContext, java.awt.AWTEvent), IlpInteractionContext

delegateEvent

protected boolean delegateEvent(IlpInteractionContext ctxt,
                                MouseEvent e)
Redefined to delegate event management to an object interactor. The delegation is done if: Note: The first time a mouse event occurs on the view over a representation object or an IlpGraphic, a MouseEvent.MOUSE_ENTERED event is delegated to the object. Similarly, a MouseEvent.MOUSE_EXITED event is delegated to the (exited) object as soon as the cursor leaves the object or the view.

Overrides:
delegateEvent in class IlpDefaultViewInteractor
Parameters:
ctxt - The interaction context used to store persistent information.
e - The mouse event to be managed.
Returns:
true if the given event has been handled by a sub-interactor.
See Also:
IlpDefaultViewInteractor.isUsingObjectInteractor()

getGestureAction

public Action getGestureAction(IlpGesture gesture)
Provides default gesture actions, depending on the view.

Specified by:
getGestureAction in interface IlpInteractor
Overrides:
getGestureAction in class IlpAbstractInteractor
Parameters:
gesture - Gesture
See Also:
IlpAbstractInteractor.setGestureAction(ilog.cpl.interactor.IlpGesture, javax.swing.Action)


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