ilog.tgo.interactor
Class IltEditGroupInteractor

java.lang.Object
  extended by ilog.views.IlvManagerViewInteractor
      extended by ilog.views.interactor.IlvSelectInteractor
          extended by ilog.tgo.interactor.IltSelectInteractor
              extended by ilog.tgo.interactor.IltEditGroupInteractor
All Implemented Interfaces:
IltGraphicChangedListener, ManagerSelectionListener, Serializable, EventListener

public class IltEditGroupInteractor
extends IltSelectInteractor
implements IltGraphicChangedListener

This class defines a view interactor which allows the user to edit or move the IltGroup objects. When a group is selected, this interactor lets you move the corner points of the group. You can also add or remove points to linear and polygonal groups. To add a point Ctrl + Click on an edge, to remove a point Ctrl + Click on a corner point.

See Also:
Serialized Form

Nested Class Summary
static class IltEditGroupInteractor.Gesture
          This class enumerates the possible gestures recognized by this interactor.
 
Constructor Summary
IltEditGroupInteractor()
          Default constructor
 
Method Summary
 void allGraphicChanged(IltGraphicChangedEvent event)
          Invoked when all graphic representations of an ILOG JTGO object are changed or updated.
 void attach(IlvManagerView view)
          Called when the interactor is attached to the manager.
protected  void detach()
          Called when the interactor is removed from the manager.
protected  IlvManagerViewInteractor getMoveSelectionInteractor()
          Called when the interactor needs to move the selected objects.
 void graphicChanged(IltGraphicChangedEvent event)
          Invoked when a graphic representation of an ILOG JTGO object is changed or updated.
protected  boolean mouseDown(MouseEvent event)
          Called when a Button Down (without Multiple selection modifier) event occurs.
protected  void mouseDownMultipleSelection(MouseEvent event)
          Called when a mouse button is down and the multiple selection modifier is also down.
 
Methods inherited from class ilog.tgo.interactor.IltSelectInteractor
drawGhostMove, getMoveSelectionManager, getMultipleSelectionInteractor, getSelectedMovingObjects, isEditingAllowed, isInvokeObjectInteractor, processEvent, processFocusEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, setEditingAllowed, setInvokeObjectInteractor
 
Methods inherited from class ilog.views.interactor.IlvSelectInteractor
deSelectAll, deSelectObject, dispatchToSelection, getLineStyle, getMoveSelectionCursor, getMoveThreshold, getMultipleSelectionCursor, getMultipleSelectionModifier, getMultipleSelectionModifierEx, getSelectionModifier, getSelectionModifierEx, handleExpose, isDragAllowed, isEditionAllowed, isHyperEdgesFollowEndNodes, isLinksFollowEndNodes, isMoveAllowed, isMultipleSelectionMode, isMultipleSelectionModifierDown, isObjectInteractorEnabled, isOpaqueDragSelection, isOpaqueMove, isOpaquePolyPointsEdition, isOpaqueResize, isSelectionModifierDown, isSelectionMovable, isShowingMovingObject, selectionChanged, selectObject, setDragAllowed, setEditionAllowed, setHyperEdgesFollowEndNodes, setLineStyle, setLinksFollowEndNodes, setMoveAllowed, setMoveSelectionCursor, setMoveThreshold, setMultipleSelectionCursor, setMultipleSelectionMode, setMultipleSelectionModifier, setObjectInteractorEnabled, setOpaqueDragSelection, setOpaqueMove, setOpaquePolyPointsEdition, setOpaqueResize, setSelectionModifier, setShowingMovingObject, setXORGhost
 
Methods inherited from class ilog.views.IlvManagerViewInteractor
addFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, allowEnsureVisible, allowEnsureVisible, disableEvents, drawGhost, drawGhost, enableEvents, ensureVisible, ensureVisible, getManager, getManagerView, getTransformer, isXORGhost, removeFocusListener, removeKeyListener, removeMouseListener, removeMouseMotionListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IltEditGroupInteractor

public IltEditGroupInteractor()
Default constructor

Method Detail

mouseDown

protected boolean mouseDown(MouseEvent event)
Description copied from class: IlvSelectInteractor
Called when a Button Down (without Multiple selection modifier) event occurs.

Overrides:
mouseDown in class IlvSelectInteractor

mouseDownMultipleSelection

protected void mouseDownMultipleSelection(MouseEvent event)
Description copied from class: IlvSelectInteractor
Called when a mouse button is down and the multiple selection modifier is also down. If an object is under the mouse, it will be added to the selection.

Overrides:
mouseDownMultipleSelection in class IlvSelectInteractor

attach

public void attach(IlvManagerView view)
Description copied from class: IlvSelectInteractor
Called when the interactor is attached to the manager.

Overrides:
attach in class IlvSelectInteractor
Parameters:
view - The manager view.
See Also:
IlvManagerViewInteractor.detach()

detach

protected void detach()
Description copied from class: IlvSelectInteractor
Called when the interactor is removed from the manager.

Overrides:
detach in class IlvSelectInteractor
See Also:
IlvManagerViewInteractor.attach(ilog.views.IlvManagerView)

allGraphicChanged

public void allGraphicChanged(IltGraphicChangedEvent event)
Description copied from interface: IltGraphicChangedListener
Invoked when all graphic representations of an ILOG JTGO object are changed or updated. This occurs when IltObject.computeGraphic() is called and comes in addition to all the single graphicChanged events.

For this event, getManager() and getGraphic() will return null.

Specified by:
allGraphicChanged in interface IltGraphicChangedListener

graphicChanged

public void graphicChanged(IltGraphicChangedEvent event)
Description copied from interface: IltGraphicChangedListener
Invoked when a graphic representation of an ILOG JTGO object is changed or updated. This occurs, for example, when IltObject.computeGraphic(manager) is called.

Specified by:
graphicChanged in interface IltGraphicChangedListener

getMoveSelectionInteractor

protected IlvManagerViewInteractor getMoveSelectionInteractor()
Description copied from class: IlvSelectInteractor
Called when the interactor needs to move the selected objects. It returns an instance of IlvSelectInteractorMoveSelection.

Overrides:
getMoveSelectionInteractor in class IltSelectInteractor
See Also:
IlvSelectInteractorMoveSelection


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