public class IlvRotateInteractor extends IlvManagerViewInteractor implements IlvPermanentInteractorInterface
IlvHandlesSelection
which
is the case for all standard Rogue Wave JViews objects.Constructor and Description |
---|
IlvRotateInteractor()
Constructs an
IlvRotateInteractor . |
Modifier and Type | Method and Description |
---|---|
protected boolean |
allowsRotation(IlvGraphic obj)
Checks if the rotation of the specified object is allowed.
|
protected void |
attach(IlvManagerView view)
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 a ghost when an object is being rotated.
|
protected boolean |
handleButtonDown(MouseEvent event)
Processes the button down events.
|
protected boolean |
handleButtonDragged(MouseEvent event)
Processes the button dragged events.
|
protected boolean |
handleButtonUp(MouseEvent event)
Processes the button up events.
|
boolean |
isOpaqueMode()
Returns whether the interactor is in Opaque mode or not.
|
boolean |
isPermanent()
Returns
true if the interactor operates in permanent mode;
false otherwise. |
boolean |
isXORGhost()
Returns the ghost drawing mode.
|
protected void |
processMouseEvent(MouseEvent event)
Processes the mouse events.
|
protected void |
processMouseMotionEvent(MouseEvent event)
Processes the mouse motion events.
|
protected void |
rotateObject(IlvGraphic object,
IlvPoint center,
double angle)
Called when rotating an object.
|
void |
setOpaqueMode(boolean set)
Sets the interactor in Opaque mode.
|
void |
setPermanent(boolean set)
Changes the mode of the interactor.
|
addFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, allowEnsureVisible, allowEnsureVisible, disableEvents, drawGhost, enableEvents, ensureVisible, ensureVisible, getManager, getManagerView, getTransformer, handleExpose, processEvent, processFocusEvent, processKeyEvent, removeFocusListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, setXORGhost
public IlvRotateInteractor()
IlvRotateInteractor
.protected void attach(IlvManagerView view)
attach
in class IlvManagerViewInteractor
view
- The manager view.IlvManagerViewInteractor.detach()
protected void detach()
detach
in class IlvManagerViewInteractor
IlvManagerViewInteractor.attach(ilog.views.IlvManagerView)
protected boolean allowsRotation(IlvGraphic obj)
obj
- The object about to be rotated.public void setOpaqueMode(boolean set)
The default mode is the Ghost mode.
isOpaqueMode()
public boolean isOpaqueMode()
setOpaqueMode(boolean)
public final boolean isXORGhost()
isOpaqueMode()
returns false
.isXORGhost
in class IlvManagerViewInteractor
true
if the drawing will be performed in
XOR
mode, false
otherwise.IlvManagerViewInteractor.setXORGhost(boolean)
,
IlvManagerViewInteractor.handleExpose(java.awt.Graphics)
,
IlvManagerViewInteractor.drawGhost(java.awt.Graphics)
protected void rotateObject(IlvGraphic object, IlvPoint center, double angle)
object
- The graphic to rotate.center
- The rotation center in manager coordinates.angle
- The angle in degrees.protected void drawGhost(Graphics g)
drawGhost
in class IlvManagerViewInteractor
g
- The Graphics.IlvManagerViewInteractor.handleExpose(java.awt.Graphics)
,
IlvManagerViewInteractor.setXORGhost(boolean)
public boolean isPermanent()
true
if the interactor operates in permanent mode;
false
otherwise.isPermanent
in interface IlvPermanentInteractorInterface
setPermanent(boolean)
public void setPermanent(boolean set)
setPermanent
in interface IlvPermanentInteractorInterface
set
- The new mode.isPermanent()
protected void processMouseEvent(MouseEvent event)
processMouseEvent
in class IlvManagerViewInteractor
event
- The event.IlvManagerViewInteractor.addMouseListener(java.awt.event.MouseListener)
protected boolean handleButtonDown(MouseEvent event)
event
- The event.true
if the event has been processed,
false
otherwise.protected boolean handleButtonUp(MouseEvent event)
event
- The event.true
if the event has been processed,
false
otherwise.protected void processMouseMotionEvent(MouseEvent event)
processMouseMotionEvent
in class IlvManagerViewInteractor
event
- The event.IlvManagerViewInteractor.addMouseMotionListener(java.awt.event.MouseMotionListener)
protected boolean handleButtonDragged(MouseEvent event)
event
- The event.true
if the event has been processed,
false
otherwise.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.