|
||||||||||
| 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.IlvPanInteractor
public class IlvPanInteractor
An interactor designed to translate a view without using scroll bars. The translation is done while dragging the mouse. It is particularly useful when the zoom level is important (because in this case, using scroll bars will imply a "jump" out of the zoomed zone).
| Constructor Summary | |
|---|---|
IlvPanInteractor()
Constructs and initializes a new instance of this interactor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvPanInteractor()
| Method Detail |
|---|
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 IlvPermanentInteractorInterfacepublic final void setPermanent(boolean permanent)
true.
setPermanent in interface IlvPermanentInteractorInterfacepermanent - the new mode.protected void attach(IlvManagerView v)
attach in class IlvManagerViewInteractorv - The manager view.IlvManagerViewInteractor.detach()protected void detach()
detach in class IlvManagerViewInteractorIlvManagerViewInteractor.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 IlvManagerViewInteractorg - The Graphics.IlvManagerViewInteractor.drawGhost(java.awt.Graphics)protected void processMouseEvent(MouseEvent event)
processMouseEvent in class IlvManagerViewInteractorevent - The event.IlvManagerViewInteractor.processMouseEvent(java.awt.event.MouseEvent)protected void processMouseMotionEvent(MouseEvent event)
processMouseMotionEvent in class IlvManagerViewInteractorevent - The event.IlvManagerViewInteractor.processMouseMotionEvent(java.awt.event.MouseEvent)protected void processEvent(AWTEvent event)
processEvent in class IlvManagerViewInteractorevent - The event.IlvManagerViewInteractor.processEvent(java.awt.AWTEvent)
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||