|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.IlvManagerViewInteractor
ilog.views.interactor.IlvSelectInteractor
ilog.tgo.interactor.IltSelectInteractor
public class IltSelectInteractor
This class defines a view interactor which allows the user to select or move one or more objects.
This class differs from ilog.views.interactor.IlvSelectInteractor:
IlvSelectInteractor,
Serialized Form| Constructor Summary | |
|---|---|
IltSelectInteractor()
Creates the interactor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IltSelectInteractor()
| Method Detail |
|---|
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)
IlvSelectInteractorisShowingMovingObject
and isOpaqueMove return true .
drawGhostMove in class IlvSelectInteractorg - 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)
IlvManagerViewInteractorprocessMouseMotionEvent, 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 IlvManagerViewInteractorevent - 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()
IlvSelectInteractorIlvSelectInteractorMoveSelection.
getMoveSelectionInteractor in class IlvSelectInteractorIlvSelectInteractorMoveSelectionprotected IlvManagerViewInteractor getMultipleSelectionInteractor()
IlvSelectInteractorIlvSelectInteractorMultipleSelection.
getMultipleSelectionInteractor in class IlvSelectInteractorIlvSelectInteractorMultipleSelectionpublic IlvGraphicEnumeration getSelectedMovingObjects(IlvManager manager)
getSelectedMovingObjects in class IlvSelectInteractorprotected void processMouseEvent(MouseEvent event)
processMouseEvent in class IlvSelectInteractorevent - The event.IlvManagerViewInteractor.addMouseListener(java.awt.event.MouseListener)protected void processMouseMotionEvent(MouseEvent event)
IlvSelectInteractor
processMouseMotionEvent in class IlvSelectInteractorevent - The event.processMouseEvent(java.awt.event.MouseEvent)protected void processKeyEvent(KeyEvent event)
IlvSelectInteractor
processKeyEvent in class IlvSelectInteractorevent - The event.processMouseEvent(java.awt.event.MouseEvent)public IlvManager getMoveSelectionManager()
IlvSelectInteractorIlvSelectInteractor.getMoveSelectionInteractor(). This manager may
be different from the manager returned by IlvManagerViewInteractor.getManager()
if the interactor is working on a submanager.
getMoveSelectionManager in class IlvSelectInteractorIlvSelectInteractor.getMoveSelectionManager()protected void processFocusEvent(FocusEvent event)
IlvSelectInteractor
processFocusEvent in class IlvSelectInteractorevent - 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)
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||