public class IlvManagerViewRotateInteractor extends IlvManagerViewInteractor
IlvManagerView.| Modifier and Type | Field and Description |
|---|---|
static int |
DYNAMIC_CONTINUOUS_MODE
Specifies that the interactor will act in continuous dynamic mode.
|
static int |
DYNAMIC_MODE
Specifies that the interactor will act in dynamic mode.
|
static int |
STATIC_AUTOCENTER_MODE
Specifies that the interactor will act in continuous auto center static mode.
|
static int |
STATIC_MODE
Specifies that the interactor will act in continuous static mode.
|
| Constructor and Description |
|---|
IlvManagerViewRotateInteractor()
Creates a
IlvManagerViewRotateInteractor |
| 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 ghost.
|
IlvPublicCompass |
getCompass()
Retrieves the compass drawn by the interactor.
|
int |
getMode()
Retreives the interactor mode.
|
int |
getResetButton()
Retrieves the mouse button that resets the rotation of the view.
|
int |
getResetCode()
Returns the keycode that resets the rotation.
|
int |
getRotateButton()
Retrieves the mouse button used to rotate the view.
|
int |
getRotateClockCode()
Returns the keycode that rotates the view clockwise.
|
int |
getRotateCounterClockCode()
Returns the keycode that rotates the view counterclockwise.
|
void |
repaint()
Repaint the interactor when in
IlvManagerViewRotateInteractor.STATIC_AUTOCENTER_MODE
or in IlvManagerViewRotateInteractor.STATIC_MODE mode. |
void |
setCompass(IlvPublicCompass compass)
Sets the compass providing feedback for the rotation.
|
void |
setMode(int m)
Sets the interactor mode.
|
void |
setResetButton(int resetButton)
Sets the mouse button that resets the rotation of the view.
|
void |
setResetCode(int code)
Sets the keycode that resets the rotation.
|
void |
setRotateButton(int rotateButton)
Sets the mouse button used to rotate the view.
|
void |
setRotateClockCode(int code)
Sets the keycode that rotates the view clockwise.
|
void |
setRotateCounterClockCode(int code)
Sets the keycode that rotates the view counterclockwise.
|
addFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, allowEnsureVisible, allowEnsureVisible, disableEvents, drawGhost, enableEvents, ensureVisible, ensureVisible, getManager, getManagerView, getTransformer, handleExpose, isXORGhost, processEvent, processFocusEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, removeFocusListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, setXORGhostpublic static final int DYNAMIC_MODE
public static final int DYNAMIC_CONTINUOUS_MODE
public static final int STATIC_MODE
public static final int STATIC_AUTOCENTER_MODE
public IlvManagerViewRotateInteractor()
IlvManagerViewRotateInteractorpublic void setCompass(IlvPublicCompass compass)
compass - The compass to display.public IlvPublicCompass getCompass()
public int getRotateButton()
public void setRotateButton(int rotateButton)
rotateButton - the mouse button used to rotate the view.public int getResetButton()
public void setResetButton(int resetButton)
resetButton - The mouse button that resets the rotation of the view.public int getRotateCounterClockCode()
KeyEvent.KP_LEFTpublic void setRotateCounterClockCode(int code)
code - The keycode that rotates the view counterclockwise.public int getRotateClockCode()
KeyEvent.KP_RIGHTpublic void setRotateClockCode(int code)
code - The keycode that rotates the view clockwise.public int getResetCode()
KeyEvent.VK_ESCAPEpublic void setResetCode(int code)
code - The keycode that resets the rotation.public void setMode(int m)
IlvManagerViewRotateInteractor.DYNAMIC_MODE,
IlvManagerViewRotateInteractor.DYNAMIC_CONTINUOUS_MODE,
IlvManagerViewRotateInteractor.STATIC_MODE and
IlvManagerViewRotateInteractor.STATIC_AUTOCENTER_MODE.m - The interactor mode.public int getMode()
protected void drawGhost(Graphics g)
drawGhost in class IlvManagerViewInteractorg - The graphics context.
Its current color is already set to the view's default ghost
color, see IlvManagerView.getDefaultGhostColor().
Also, in XOR ghost drawing mode, the graphics context is already
set to XOR mode, with the view's default XOR color, see
IlvManagerView.getDefaultXORColor().IlvManagerViewInteractor.drawGhost(java.awt.Graphics)protected void attach(IlvManagerView v)
attach in class IlvManagerViewInteractorv - The manager view.IlvManagerViewInteractor.attach(ilog.views.IlvManagerView)protected void detach()
detach in class IlvManagerViewInteractorIlvManagerViewInteractor.detach()public void repaint()
IlvManagerViewRotateInteractor.STATIC_AUTOCENTER_MODE
or in IlvManagerViewRotateInteractor.STATIC_MODE mode.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.