|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjpicedt.graphic.toolkit.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)
render the selection rectangle |
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)
start in interface MouseTransformpublic void process(PEMouseEvent e)
process in interface MouseTransformpublic boolean next(PEMouseEvent e)
next in interface MouseTransform
public void paint(Graphics2D g,
Rectangle2D allocation,
double scale)
paint in interface MouseTransformscale - Graphics2D's current scale factor b/w model and viewpublic Rectangle2D getClipRectangle()
public String getHelpMessage()
MouseTransform
getHelpMessage in interface MouseTransformpublic String toString()
public Cursor getCursor()
MouseTransform
getCursor in interface MouseTransform
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||