public class IltSelectInteractor extends IlvSelectInteractor
This class differs from ilog.views.interactor.IlvSelectInteractor:
IlvSelectInteractor
,
Serialized FormConstructor and Description |
---|
IltSelectInteractor()
Creates the interactor.
|
Modifier and Type | Method and Description |
---|---|
void |
drawGhostMove(Graphics g,
IlvGraphic obj,
IlvRect rect)
Draws a ghost of the object when an object is moved.
|
protected IlvManagerViewInteractor |
getMoveSelectionInteractor()
Called when the interactor needs to
move the selected objects.
|
IlvManager |
getMoveSelectionManager()
Returns the manager that contains the selected objects
to be moved.
|
protected IlvManagerViewInteractor |
getMultipleSelectionInteractor()
Called when the interactor must
select multiple objects.
|
IlvGraphicEnumeration |
getSelectedMovingObjects(IlvManager manager)
Returns the selected moving objects of the input manager.
|
boolean |
isEditingAllowed()
Returns
true if the interactor lets the user edit objects by
dispatching the events to the interactor attached to the
selection object. |
boolean |
isInvokeObjectInteractor()
Indicates whether this interactor should give the priority to the object
interactor or not.
|
void |
processEvent(AWTEvent event)
Processes the events.
|
protected void |
processFocusEvent(FocusEvent event)
Processes the focus events.
|
protected void |
processKeyEvent(KeyEvent event)
Processes the keyboard events.
|
protected void |
processMouseEvent(MouseEvent event)
This implementation try to invoke the object interactor if one exists.
|
protected void |
processMouseMotionEvent(MouseEvent event)
Processes the mouse motion events.
|
void |
setEditingAllowed(boolean allow)
Lets you enable or disable the mode that allows you to edit
objects with the interactor.
|
void |
setInvokeObjectInteractor(boolean invokeObjectInteractor)
Sets whether this interactor should give the priority to the object
interactor or not.
|
attach, deSelectAll, deSelectObject, detach, dispatchToSelection, getLineStyle, getMaximumScrollDistance, getMoveSelectionCursor, getMoveThreshold, getMultipleSelectionCursor, getMultipleSelectionModifier, getMultipleSelectionModifierEx, getObject, getScrollTiming, getSelectionModifier, getSelectionModifierEx, handleExpose, isDragAllowed, isEditionAllowed, isHyperEdgesFollowEndNodes, isLinksFollowEndNodes, isMoveAffectsSingleSubManager, isMoveAllowed, isMultipleSelectionMode, isMultipleSelectionModifierDown, isObjectInteractorEnabled, isOpaqueDragSelection, isOpaqueMove, isOpaquePolyPointsEdition, isOpaqueResize, isProgressiveScroll, isSelectionInsideSubobjectsAllowed, isSelectionModifierDown, isSelectionMovable, isShowingMovingObject, mouseDown, mouseDownMultipleSelection, selectionChanged, selectObject, setDragAllowed, setEditionAllowed, setHyperEdgesFollowEndNodes, setLineStyle, setLinksFollowEndNodes, setMaximumScrollDistance, setMoveAffectsSingleSubManager, setMoveAllowed, setMoveSelectionCursor, setMoveThreshold, setMultipleSelectionCursor, setMultipleSelectionMode, setMultipleSelectionModifier, setObjectInteractorEnabled, setOpaqueDragSelection, setOpaqueMove, setOpaquePolyPointsEdition, setOpaqueResize, setProgressiveScroll, setScrollTiming, setSelectionInsideSubobjectsAllowed, setSelectionModifier, setShowingMovingObject, setXORGhost
addFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, allowEnsureVisible, allowEnsureVisible, disableEvents, drawGhost, drawGhost, enableEvents, ensureVisible, ensureVisible, getManager, getManagerView, getTransformer, isXORGhost, removeFocusListener, removeKeyListener, removeMouseListener, removeMouseMotionListener
public boolean isInvokeObjectInteractor()
public void setInvokeObjectInteractor(boolean invokeObjectInteractor)
Note: When wrapped inside an IlpViewsViewInteractor
, this
setting has no effect. Use
IlpDefaultViewInteractor.setUsingObjectInteractor(boolean)
instead.
public void drawGhostMove(Graphics g, IlvGraphic obj, IlvRect rect)
IlvSelectInteractor
isShowingMovingObject
and isOpaqueMove
return true
.drawGhostMove
in class IlvSelectInteractor
g
- The Graphics
to perform the drawings.obj
- The moved object.rect
- The new location of the object.IlvSelectInteractor.isShowingMovingObject()
,
IlvSelectInteractor.isOpaqueMove()
public void processEvent(AWTEvent event)
IlvManagerViewInteractor
processMouseMotionEvent
, processMouseEvent
,
processKeyEvent
, processFocusEvent
.
Note that the methods will be called only if a listener has been added
for the type of event or if the handling of the event has been enabled
with enableEvents
.processEvent
in class IlvManagerViewInteractor
event
- The event.IlvManagerViewInteractor.processMouseMotionEvent(java.awt.event.MouseEvent)
,
IlvManagerViewInteractor.processMouseEvent(java.awt.event.MouseEvent)
,
IlvManagerViewInteractor.processKeyEvent(java.awt.event.KeyEvent)
,
IlvManagerViewInteractor.processFocusEvent(java.awt.event.FocusEvent)
protected IlvManagerViewInteractor getMoveSelectionInteractor()
IlvSelectInteractor
IlvSelectInteractorMoveSelection
.getMoveSelectionInteractor
in class IlvSelectInteractor
IlvSelectInteractorMoveSelection
protected IlvManagerViewInteractor getMultipleSelectionInteractor()
IlvSelectInteractor
IlvSelectInteractorMultipleSelection
.getMultipleSelectionInteractor
in class IlvSelectInteractor
IlvSelectInteractorMultipleSelection
public IlvGraphicEnumeration getSelectedMovingObjects(IlvManager manager)
getSelectedMovingObjects
in class IlvSelectInteractor
protected void processMouseEvent(MouseEvent event)
processMouseEvent
in class IlvSelectInteractor
event
- The event.IlvManagerViewInteractor.addMouseListener(java.awt.event.MouseListener)
protected void processMouseMotionEvent(MouseEvent event)
IlvSelectInteractor
processMouseMotionEvent
in class IlvSelectInteractor
event
- The event.processMouseEvent(java.awt.event.MouseEvent)
protected void processKeyEvent(KeyEvent event)
IlvSelectInteractor
processKeyEvent
in class IlvSelectInteractor
event
- The event.processMouseEvent(java.awt.event.MouseEvent)
public IlvManager getMoveSelectionManager()
IlvSelectInteractor
IlvSelectInteractor.getMoveSelectionInteractor()
. This manager may
be different from the manager returned by IlvManagerViewInteractor.getManager()
if the interactor is working on a submanager.getMoveSelectionManager
in class IlvSelectInteractor
IlvSelectInteractor.getMoveSelectionManager()
protected void processFocusEvent(FocusEvent event)
IlvSelectInteractor
processFocusEvent
in class IlvSelectInteractor
event
- The event.processMouseEvent(java.awt.event.MouseEvent)
public boolean isEditingAllowed()
true
if the interactor lets the user edit objects by
dispatching the events to the interactor attached to the
selection object.public void setEditingAllowed(boolean allow)
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.