public class IlvPanInteractor extends IlvManagerViewInteractor implements IlvPermanentInteractorInterface
Constructor and Description |
---|
IlvPanInteractor()
Constructs and initializes a new instance of this interactor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
attach(IlvManagerView v)
Called when the interactor is attached to the manager view.
|
protected void |
detach()
Called when the interactor is detached from the view.
|
protected void |
drawGhost(Graphics g)
Draws the rectangle ghost.
|
protected IlvPoint |
getCurrentTranslation(MouseEvent event)
Returns the current translation factors.
|
Cursor |
getDefaultCursor()
Returns the default
Cursor that is set on the
associated view when no mouse drag is performed. |
Cursor |
getDragCursor()
Returns the drag
Cursor . |
boolean |
isOpaqueMove()
Returns whether the interactor is in Opaque Move mode or not.
|
boolean |
isPermanent()
Returns
false if the interactor will be removed from the
view once the object is created. |
protected void |
processEvent(AWTEvent event)
Processes the events.
|
protected void |
processMouseEvent(MouseEvent event)
Processes the mouse events.
|
protected void |
processMouseMotionEvent(MouseEvent event)
Processes the mouse motion events.
|
void |
setDefaultCursor(Cursor c)
Sets the default
Cursor on the associated view while
this view is not being translated. |
void |
setDragCursor(Cursor c)
Sets the drag
Cursor on the associated view while the left
mouse button is pressed
(while dragging, for instance). |
void |
setOpaqueMove(boolean set)
Sets the interactor in Opaque Move mode.
|
void |
setPermanent(boolean permanent)
Allows you to specify if the interactor will or will not be removed
from the view once
the object is created.
|
addFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, allowEnsureVisible, allowEnsureVisible, disableEvents, drawGhost, enableEvents, ensureVisible, ensureVisible, getManager, getManagerView, getTransformer, handleExpose, isXORGhost, processFocusEvent, processKeyEvent, removeFocusListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, setXORGhost
public IlvPanInteractor()
public final boolean isPermanent()
false
if the interactor will be removed from the
view once the object is created.
The default value is true
.isPermanent
in interface IlvPermanentInteractorInterface
public final void setPermanent(boolean permanent)
true
.setPermanent
in interface IlvPermanentInteractorInterface
permanent
- the new mode.protected void attach(IlvManagerView v)
attach
in class IlvManagerViewInteractor
v
- The manager view.IlvManagerViewInteractor.detach()
protected void detach()
detach
in class IlvManagerViewInteractor
IlvManagerViewInteractor.attach(ilog.views.IlvManagerView)
public void setDragCursor(Cursor c)
Cursor
on the associated view while the left
mouse button is pressed
(while dragging, for instance).c
- The Cursor object.getDragCursor()
public void setDefaultCursor(Cursor c)
Cursor
on the associated view while
this view is not being translated.
(The left mouse button is not pressed).c
- The Cursor object.getDefaultCursor()
public Cursor getDragCursor()
Cursor
.setDragCursor(java.awt.Cursor)
public Cursor getDefaultCursor()
Cursor
that is set on the
associated view when no mouse drag is performed.setDefaultCursor(java.awt.Cursor)
public final void setOpaqueMove(boolean set)
public final boolean isOpaqueMove()
protected IlvPoint getCurrentTranslation(MouseEvent event)
IlvPoint
.event
- The MouseEvent
corresponding to a
MOUSE_RELEASED.protected void drawGhost(Graphics g)
drawGhost
in class IlvManagerViewInteractor
g
- The Graphics.IlvManagerViewInteractor.drawGhost(java.awt.Graphics)
protected void processMouseEvent(MouseEvent event)
processMouseEvent
in class IlvManagerViewInteractor
event
- The event.IlvManagerViewInteractor.processMouseEvent(java.awt.event.MouseEvent)
protected void processMouseMotionEvent(MouseEvent event)
processMouseMotionEvent
in class IlvManagerViewInteractor
event
- The event.IlvManagerViewInteractor.processMouseMotionEvent(java.awt.event.MouseEvent)
protected void processEvent(AWTEvent event)
processEvent
in class IlvManagerViewInteractor
event
- The event.IlvManagerViewInteractor.processEvent(java.awt.AWTEvent)
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.