ilog.tgo.interactor
Class IltMakeRectGroupInteractor

java.lang.Object
  extended by ilog.views.IlvManagerViewInteractor
      extended by ilog.views.interactor.IlvDragRectangleInteractor
          extended by ilog.views.interactor.IlvMakeRectangleInteractor
              extended by ilog.tgo.interactor.IltMakeRectGroupInteractor
All Implemented Interfaces:
IlvPermanentInteractorInterface, Serializable

public class IltMakeRectGroupInteractor
extends IlvMakeRectangleInteractor
implements IlvPermanentInteractorInterface

This class implements a view interactor which allows the user to create a rectangular region, as an IltRectGroup instance.

When used in an IlpViewsView via IlpViewsViewInteractor, this interactor recognizes the gesture CREATE_RECT_GROUP.

Note that the following superclass methods are useless in this interactor because the created object is an IltObject and not an IlvGraphic as supposed in the superclass. In addition, the IltObject should be instantiated in the method trigger.

See Also:
IlpViewsViewInteractor, Serialized Form

Nested Class Summary
static class IltMakeRectGroupInteractor.Gesture
          This class enumerates the possible gestures recognized by this interactor.
 
Constructor Summary
IltMakeRectGroupInteractor()
          Creates a new instance.
 
Method Summary
protected  IlvGraphic makeObject(IlvRect rect)
          Creates the IlvRectangle.
protected  void trigger(IlvRect shape)
          This function must be implemented in a subclass.
 
Methods inherited from class ilog.views.interactor.IlvMakeRectangleInteractor
addObject, detach, drawGhost, fireRectangleDraggedEvent, getBackground, getForeground, getObjectFactory, isCreationInSubManagersAllowed, isFillOn, isGrapherMode, isPermanent, isSelectionMode, isStrokeOn, isXORGhost, resizeObject, setBackground, setCreationInSubManagersAllowed, setFillOn, setForeground, setGrapherMode, setObjectFactory, setPermanent, setSelectionMode, setStrokeOn
 
Methods inherited from class ilog.views.interactor.IlvDragRectangleInteractor
addRectangleDraggedListener, attach, getCursor, getDraggedRectangle, getLineStyle, getRectangleAspectRatio, getStartDragModifier, getStartPoint, handleButtonDown, handleButtonDragged, handleButtonUp, isGridMode, isOpaqueMode, isRotationAllowed, isStartDragModifierDown, processMouseEvent, processMouseMotionEvent, removeRectangleDraggedListener, setCursor, setGridMode, setLineStyle, setOpaqueMode, setRectangleAspectRatio, setRotationAllowed, setStartDragModifier
 
Methods inherited from class ilog.views.IlvManagerViewInteractor
addFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, allowEnsureVisible, allowEnsureVisible, disableEvents, drawGhost, enableEvents, ensureVisible, ensureVisible, getManager, getManagerView, getTransformer, handleExpose, processEvent, processFocusEvent, processKeyEvent, removeFocusListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, setXORGhost
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ilog.views.interactor.IlvPermanentInteractorInterface
isPermanent, setPermanent
 

Constructor Detail

IltMakeRectGroupInteractor

public IltMakeRectGroupInteractor()
Creates a new instance.

Method Detail

trigger

protected void trigger(IlvRect shape)
This function must be implemented in a subclass. It creates a new IltRectGroup object and should call computeGraphic on it, passing to it the shape argument.

This implementation creates an IltRectGroup if this interactor is set to a view which displays the content of an IltNetwork. If the manager associated with this view is not an IltNetwork, no IltRectGroup will be created. When created, the group has the state IltOSI.State.Usage.Active and is added to the IltNetwork.

As this method instantiates an IltObject, any subclass which overrides this method to instantiate its own IltObject should never call super.trigger.


makeObject

protected IlvGraphic makeObject(IlvRect rect)
Description copied from class: IlvMakeRectangleInteractor
Creates the IlvRectangle. This method is called by the interactor to create the rectangle.

The default implementation creates an IlvRectangle if no factory is installed; otherwise it calls the createObject method of the factory.

Overrides:
makeObject in class IlvMakeRectangleInteractor


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