ilog.tgo.interactor
Class IltMakeLinearGroupInteractor

java.lang.Object
  extended by ilog.views.IlvManagerViewInteractor
      extended by ilog.views.interactor.IlvMakePolyPointsInteractor
          extended by ilog.views.interactor.IlvMakePolylineInteractor
              extended by ilog.tgo.interactor.IltMakeLinearGroupInteractor
All Implemented Interfaces:
IlvPermanentInteractorInterface, IlvPolyPointsObjectFactory, Serializable

public class IltMakeLinearGroupInteractor
extends IlvMakePolylineInteractor
implements IlvPermanentInteractorInterface

This class implements a view interactor which allows the user to create an IltLinearGroup.

Note that the following methods from the superclass are useless in this interactor because the object that is created is an IltObject and not an IlvGraphic as supposed in the superclass:

Additionally the IltObject should be instantiated in the method trigger.

See Also:
Serialized Form

Nested Class Summary
static class IltMakeLinearGroupInteractor.Gesture
          This class enumerates the possible gestures recognized by this interactor.
 
Constructor Summary
IltMakeLinearGroupInteractor()
          Creates a new instance.
 
Method Summary
protected  IlvGraphic makePolyPoint(IlvPoint[] points)
          Called to create the polypoint object.
protected  void trigger(IlpPolyline shape)
          This function must be implemented in a subclass.
 
Methods inherited from class ilog.views.interactor.IlvMakePolylineInteractor
createObject
 
Methods inherited from class ilog.views.interactor.IlvMakePolyPointsInteractor
accept, addPolyPoints, allowsMultiplePoints, allowsMultiplePoints, attach, count, detach, doIt, drawGhost, endOnDoubleClick, getBackground, getCursor, getForeground, getMinPointsDistance, getObjectFactory, getPoints, isAllowingMultiplePoints, isCreationInSubManagersAllowed, isGrapherMode, isGridMode, isOpaqueMode, isPermanent, isSelectionMode, isXORGhost, numberOfPointsReached, processMouseEvent, processMouseMotionEvent, react, reInitialize, setAllowingMultiplePoints, setBackground, setCreationInSubManagersAllowed, setCursor, setForeground, setGrapherMode, setGridMode, setMinPointsDistance, setObjectFactory, setOpaqueMode, setPermanent, setSelectionMode
 
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

IltMakeLinearGroupInteractor

public IltMakeLinearGroupInteractor()
Creates a new instance.

Method Detail

trigger

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

This implementation creates an IltLinearGroup if this interactor is set on a view which displays the content of an IltNetwork. If the manager associated with this view is not an IltNetwork, no IltLinearGroup 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.


makePolyPoint

protected IlvGraphic makePolyPoint(IlvPoint[] points)
Description copied from class: IlvMakePolyPointsInteractor
Called to create the polypoint object. The default implementation uses the factory object to create the graphic object. If no factory is installed, then an IlvPolyline object is created. The foreground and background colors are set on the object.

Overrides:
makePolyPoint in class IlvMakePolyPointsInteractor
Parameters:
points - The selected points in the object's coordinate space.
See Also:
IlvMakePolyPointsInteractor.setObjectFactory(ilog.views.interactor.IlvPolyPointsObjectFactory), IlvMakePolyPointsInteractor.setBackground(java.awt.Color), IlvMakePolyPointsInteractor.setForeground(java.awt.Color)


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