|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjpicedt.graphic.toolkit.AbstractMouseTransformFactory.SelectAreaTransform
protected class AbstractMouseTransformFactory.SelectAreaTransform
A mouse-transform dedicated to select objects (Element's, control-point's,…)
inside a rectangle dragged by the user. Only a skeletal implementation is provided here.
This implementation grows the selection rectangle,
yet where really selecting things is concerned, subclassers may override methods by
calling super.method_name before hand.
| Constructor Summary | |
|---|---|
protected |
AbstractMouseTransformFactory.SelectAreaTransform()
|
| Method Summary | |
|---|---|
Rectangle2D |
getClipRectangle()
Returns a rectangle defining the clip boundary for this mouse-transform, in model-coordinates |
Cursor |
getCursor()
Return the cursor for this MouseTransform |
String |
getHelpMessage()
Return a help-message for the UI, that makes sense with this transform. |
protected Rectangle2D |
getSelectionRectangle()
Return the selection rectangle as built from the first mouse-pressed event and the current drag position. |
boolean |
next(PEMouseEvent e)
Called when the mouse is released. |
void |
paint(Graphics2D g,
Rectangle2D allocation,
double scale)
Rendu de la plage rectangulaire sélectionnée. |
void |
process(PEMouseEvent e)
Called when the mouse is dragged. |
void |
start(PEMouseEvent e)
Invoked by mousePressed(). |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractMouseTransformFactory.SelectAreaTransform()
| Method Detail |
|---|
protected final Rectangle2D getSelectionRectangle()
public void start(PEMouseEvent e)
mousePressed(). This implementation simply initializes the geometry
of the selection rectangle. Override if you must carry out specific selection operations
on mousePressed().
start in interface MouseTransformpublic void process(PEMouseEvent e)
process in interface MouseTransformpublic boolean next(PEMouseEvent e)
next in interface MouseTransformtrue if there's another task in the sequence,
false if mouse-transform has completed with this
mouse-event.
public void paint(Graphics2D g,
Rectangle2D allocation,
double scale)
paint in interface MouseTransformscale - le facteur d'échelle Graphics2D entre modèle et vue.public Rectangle2D getClipRectangle()
public String getHelpMessage()
MouseTransform
getHelpMessage in interface MouseTransformpublic String toString()
toString in class Objectpublic Cursor getCursor()
MouseTransform
getCursor in interface MouseTransformCursorFactory.
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||