|
||||||||||
| 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.IlvRotateInteractor
public class IlvRotateInteractor
This interactor allows you to rotate one of the selected objects.
You can rotate it by dragging handles of the selection object.
Note that this interactor can only rotate objects whose selection
object is a subclass of
IlvHandlesSelection which
is the case for all standard ILOG JViews objects.
| Constructor Summary | |
|---|---|
IlvRotateInteractor()
Constructs an IlvRotateInteractor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvRotateInteractor()
IlvRotateInteractor.
| Method Detail |
|---|
protected void attach(IlvManagerView view)
attach in class IlvManagerViewInteractorview - The manager view.IlvManagerViewInteractor.detach()protected void detach()
detach in class IlvManagerViewInteractorIlvManagerViewInteractor.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 IlvManagerViewInteractortrue 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 IlvManagerViewInteractorg - 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 IlvPermanentInteractorInterfacesetPermanent(boolean)public void setPermanent(boolean set)
setPermanent in interface IlvPermanentInteractorInterfaceset - The new mode.isPermanent()protected void processMouseEvent(MouseEvent event)
processMouseEvent in class IlvManagerViewInteractorevent - 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 IlvManagerViewInteractorevent - 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.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||