|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.rolemodelsoft.drawlet.basics.AbstractInputEventHandler
|
+--com.rolemodelsoft.drawlet.basics.CanvasTool
This abstract class offers a simple base for Tools attached to a DrawingCanvas Subclasses would typically provide a constructor that takes a DrawingCanvas as an argument.
| Field Summary | |
protected DrawingCanvas |
canvas
The canvas upon which to "operate" |
| Constructor Summary | |
CanvasTool()
|
|
| Method Summary | |
protected int |
getX(java.awt.event.MouseEvent evt)
Returns the proper x value for the given event. |
protected int |
getY(java.awt.event.MouseEvent evt)
Returns the proper y value for the given event. |
void |
mouseReleased(java.awt.event.MouseEvent e)
Called if the mouse is released. |
| Methods inherited from class com.rolemodelsoft.drawlet.basics.AbstractInputEventHandler |
keyPressed,
keyReleased,
keyTyped,
mouseClicked,
mouseDoubleClicked,
mouseDragged,
mouseEntered,
mouseExited,
mouseMoved,
mousePressed,
mouseSingleClicked |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
protected DrawingCanvas canvas
| Constructor Detail |
public CanvasTool()
| Method Detail |
protected int getX(java.awt.event.MouseEvent evt)
evt - the MouseEvent to get the corrected x for.protected int getY(java.awt.event.MouseEvent evt)
evt - the MouseEvent to get the corrected y for.public void mouseReleased(java.awt.event.MouseEvent e)
e - the MouseEvent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||