|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.IlvObjectInteractor
ilog.views.IlvReshapeSelection
public class IlvReshapeSelection
An object interactor that reshapes an instance of
IlvDrawSelection.
Since JViews 8.0, this interactor can reshape graphic object that implement
IlvDefinitionRectInterface.
| Constructor Summary | |
|---|---|
IlvReshapeSelection()
Creates an IlvReshapeSelection. |
|
| Method Summary | |
|---|---|
protected void |
drawGhost(IlvDrawSelection obj,
Graphics g,
IlvObjectInteractorContext context)
Draws a rectangle while reshaping. |
protected void |
drawGhost(IlvObjectInteractorContext context)
Deprecated. Beginning with ILOG JViews 5.0, use the method drawGhost(IlvDrawSelection, Graphics, IlvObjectInteractorContext)
instead. |
protected IlvRect |
getBoundingBox(IlvGraphic obj,
IlvTransformer t)
Returns the rectangle that defines the bounds of the graphic object. |
Cursor |
getCursor(int direction)
Returns the cursor used for editing. |
protected boolean |
handleButtonDown(IlvDrawSelection sel,
MouseEvent event,
IlvObjectInteractorContext context)
Processes the button down events. |
protected boolean |
handleButtonDragged(IlvDrawSelection sel,
MouseEvent event,
IlvObjectInteractorContext context)
Processes the button dragged events. |
protected boolean |
handleButtonUp(IlvDrawSelection sel,
MouseEvent event,
IlvObjectInteractorContext context)
Processes the button up events. |
void |
handleExpose(IlvGraphic obj,
Graphics g,
IlvObjectInteractorContext context)
Called when the view that draws the polypoints object is drawn. |
boolean |
isOpaqueMode()
Returns an indication of whether the interactor is in Opaque mode or not. |
void |
onEnter(IlvGraphic sel,
IlvObjectInteractorContext context)
Called when the selection is entered. |
void |
onExit(IlvGraphic sel,
IlvObjectInteractorContext context)
Called when the selection is exited. |
boolean |
processEvent(IlvGraphic obj,
AWTEvent event,
IlvObjectInteractorContext context)
Processes the events. |
protected void |
reshapeObject(IlvGraphic graphic,
IlvRect rect)
Called to let the interactor reshape an object. |
void |
setOpaqueMode(boolean set)
Sets the interactor in Opaque mode. |
| Methods inherited from class ilog.views.IlvObjectInteractor |
|---|
Get, Put |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvReshapeSelection()
IlvReshapeSelection.
| Method Detail |
|---|
public Cursor getCursor(int direction)
direction - The reshaping direction.
protected void reshapeObject(IlvGraphic graphic,
IlvRect rect)
graphic - The IlvGraphic to reshape.rect - The new rectangle defining the object.
protected boolean handleButtonDown(IlvDrawSelection sel,
MouseEvent event,
IlvObjectInteractorContext context)
true if the event has been processed,
false otherwise.
protected IlvRect getBoundingBox(IlvGraphic obj,
IlvTransformer t)
IlvGraphic.boundingBox(IlvTransformer).
public void setOpaqueMode(boolean set)
The default mode is the Ghost mode.
isOpaqueMode(),
IlvSelectInteractor.setOpaqueResize(boolean)public boolean isOpaqueMode()
setOpaqueMode(boolean),
IlvSelectInteractor.setOpaqueResize(boolean)
protected boolean handleButtonDragged(IlvDrawSelection sel,
MouseEvent event,
IlvObjectInteractorContext context)
true if the event has been processed,
false otherwise.
protected boolean handleButtonUp(IlvDrawSelection sel,
MouseEvent event,
IlvObjectInteractorContext context)
public boolean processEvent(IlvGraphic obj,
AWTEvent event,
IlvObjectInteractorContext context)
processEvent in class IlvObjectInteractorobj - The graphic object.event - The event to process.context - The context in which the event occurred.
true if the event was handled
by this processEvent invocation,
false otherwise.
public void handleExpose(IlvGraphic obj,
Graphics g,
IlvObjectInteractorContext context)
drawGhost(IlvDrawSelection, Graphics, IlvObjectInteractorContext)
if the interactor is in ghost mode, and does nothing otherwise.
handleExpose in class IlvObjectInteractorobj - The graphic object to which the object interactor is associated.g - The Graphics where obj is drawn.context - The interactor context.drawGhost(IlvDrawSelection, Graphics, IlvObjectInteractorContext)protected void drawGhost(IlvObjectInteractorContext context)
drawGhost(IlvDrawSelection, Graphics, IlvObjectInteractorContext)
instead.
protected void drawGhost(IlvDrawSelection obj,
Graphics g,
IlvObjectInteractorContext context)
obj - The graphic object to which the object interactor is associated.g - The Graphics where obj is drawn.context - The interactor context.isOpaqueMode()
public void onEnter(IlvGraphic sel,
IlvObjectInteractorContext context)
IlvSelection.onEnter(ilog.views.IlvObjectInteractorContext)).
The selection is entered if the select interactor moves the mouse over
the selection so that mouse events are dispatched to the object interactor
of this selection.
onEnter in class IlvObjectInteractorsel - The selection object.context - The context for the object interactor.
public void onExit(IlvGraphic sel,
IlvObjectInteractorContext context)
IlvSelection.onExit(ilog.views.IlvObjectInteractorContext)).
The selection is exited if the select interactor moves the mouse to
a blanc area of the view, or to another selection so that mouse events
are no longer dispatched to the object interactor of this selection.
onExit in class IlvObjectInteractorsel - The selection object.context - The context for the object interactor.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||