public class IltSelectInteractorMoveSelection extends IlvSelectInteractorMoveSelection
This class differs from
ilog.views.interactor.IlvSelectInteractorMoveSelection
in the treatment of the links adapted to JTGO objects and in
the treatment of key events allowing objects to be moved using the
arrow keys.
Constructor and Description |
---|
IltSelectInteractorMoveSelection(IltSelectInteractor inter)
Creates a new interactor for moving the selection.
|
Modifier and Type | Method and Description |
---|---|
protected IlvRect |
getSelectionBoundingBox(IlvGraphic object,
IlvTransformer transf)
This method is invoked by
setSelectionRect() and is intended
to return the bounding box of a given object. |
protected void |
processKeyEvent(KeyEvent event)
Takes into account specific
KeyEvent s like arrow up,
down, left and right nd moves the selected objects accordingly by 1
pixel. |
protected boolean |
trigger(AWTEvent event,
double dx,
double dy)
Called when the user releases the mouse button.
|
attach, detach, drawGhost, getMaximumScrollDistance, getScrollTiming, getSelectInteractor, isOpaqueMode, isProgressiveScroll, isXORGhost, objectIsMovable, rectangleDragged, snapRectangleToGrid, translateSelections
dragscroll, getCursor, getLineStyle, getMoveThreshold, getRectangle, handleButtonDown, handleButtonDragged, handleButtonUp, isDragging, isGridMode, processMouseEvent, processMouseMotionEvent, setCursor, setGridMode, setLineStyle, setMoveThreshold, setOpaqueMode, setRectangle
adjustPointIfOutsideView, doAutoScroll, setMaximumScrollDistance, setProgressiveScroll, setScrollTiming, startDraggingScrollTimer, stopDraggingScrollTimer
addFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, allowEnsureVisible, allowEnsureVisible, disableEvents, drawGhost, enableEvents, ensureVisible, ensureVisible, getManager, getManagerView, getTransformer, handleExpose, processEvent, processFocusEvent, removeFocusListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, setXORGhost
public IltSelectInteractorMoveSelection(IltSelectInteractor inter)
inter
- the associated IlvSelectInteractor
protected boolean trigger(AWTEvent event, double dx, double dy)
IlvSelectInteractorMoveSelection
IlvSelectInteractor
is not in opaqueMove,
this method will call translateSelections
to perform
the selection translation.trigger
in class IlvSelectInteractorMoveSelection
event
- The event that launches the method.dx
- The x translation of the rectangle.dy
- The y translation of the rectangle.IlvSelectInteractorMoveSelection.translateSelections(double, double)
protected IlvRect getSelectionBoundingBox(IlvGraphic object, IlvTransformer transf)
setSelectionRect()
and is intended
to return the bounding box of a given object. It is needed to address
JV-1363 TGO issue.
The IltSelectInteractor.MovingObjectsFilter
filter sets
only one BTS child (antenna or equipment) as movable, which is needed
to avoid each BTS child firing position changes that corrupt the correct
center point of the whole set.
Unfortunately setSelectionRect()
method relies on the
bounding box of the movable selected objects to compute the difference
(dx,dy) while dragging objects in opaque move. Since
IltSelectInteractor.MovingObjectsFilter
will let only one
BTS child pass, the total selected objects rectangle will be smaller
than it should.getSelectionBoundingBox
in class IlvSelectInteractorMoveSelection
object
- The movable selected objecttransf
- The current drawing transformerprotected void processKeyEvent(KeyEvent event)
KeyEvent
s like arrow up,
down, left and right nd moves the selected objects accordingly by 1
pixel.processKeyEvent
in class IlvManagerViewInteractor
event
- a KeyEvent
valueIlvManagerViewInteractor.addKeyListener(java.awt.event.KeyListener)
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.