protected class AbstractMouseTransformFactory.SelectAreaTransform extends java.lang.Object implements MouseTransform
| Modifier | Constructor and Description |
|---|---|
protected |
SelectAreaTransform() |
| Modifier and Type | Method and Description |
|---|---|
java.awt.geom.Rectangle2D |
getClipRectangle()
Returns a rectangle defining the clip boundary for this mouse-transform, in model-coordinates
|
java.awt.Cursor |
getCursor()
Return the cursor for this MouseTransform
|
java.lang.String |
getHelpMessage()
Return a help-message for the UI, that makes sense with this transform.
|
protected java.awt.geom.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(java.awt.Graphics2D g,
java.awt.geom.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().
|
java.lang.String |
toString() |
protected final java.awt.geom.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 MouseTransformpublic void paint(java.awt.Graphics2D g,
java.awt.geom.Rectangle2D allocation,
double scale)
paint in interface MouseTransformscale - Graphics2D's current scale factor b/w model and viewpublic java.awt.geom.Rectangle2D getClipRectangle()
public java.lang.String getHelpMessage()
MouseTransformgetHelpMessage in interface MouseTransformpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.awt.Cursor getCursor()
MouseTransformgetCursor in interface MouseTransformSubmit a bug : syd@jpicedt.org