|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MouseTransform
An interface that specifies behaviours shared by mouse-driven object-editing actions, especially
when driven by SelectionTool
.
Sequence order is:
start()
process()
next()
? no ⇒ end()
process()
next()
? no ⇒ end()
Method Summary | |
---|---|
Cursor |
getCursor()
Return the cursor for this MouseTransform |
String |
getHelpMessage()
Return a help-message for the UI, that makes sense with this transform. |
boolean |
next(PEMouseEvent e)
Called when the left mouse-button changes state. |
void |
paint(Graphics2D g,
Rectangle2D allocation,
double scale)
Allows the MouseTransform to do specific graphic rendering when it's operating. |
void |
process(PEMouseEvent e)
Called when the mouse is dragged/moved after the first mouse-pressed event. |
void |
start(PEMouseEvent e)
Called when the mouse is pressed. |
Method Detail |
---|
void start(PEMouseEvent e)
void process(PEMouseEvent e)
boolean next(PEMouseEvent e)
true
if there's another task in the sequence,
false
if mouse-transform has completed with this
mouse-event.Cursor getCursor()
void paint(Graphics2D g, Rectangle2D allocation, double scale)
String getHelpMessage()
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |