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