|
|||||||||
| 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
|
+--com.rolemodelsoft.drawlet.basics.SelectionTool
|
+--com.rolemodelsoft.drawlet.examples.graphnode.GraphNodeTool
Here is a simple tool that extends the SelectionTool to create GraphNodes when a doubleClick event occurs.
| Fields inherited from class com.rolemodelsoft.drawlet.basics.SelectionTool |
referenceFigure,
referenceX,
referenceY |
| Fields inherited from class com.rolemodelsoft.drawlet.basics.CanvasTool |
canvas |
| Constructor Summary | |
GraphNodeTool(DrawingCanvas canvas)
|
|
| Method Summary | |
protected GraphNode |
basicNewGraphNode()
Answer a new graph node |
protected void |
mouseDoubleClicked(java.awt.event.MouseEvent e)
Called if the mouse is double-clicked. |
| Methods inherited from class com.rolemodelsoft.drawlet.basics.SelectionTool |
boxSelect,
mouseDragged,
mousePressed |
| Methods inherited from class com.rolemodelsoft.drawlet.basics.CanvasTool |
getX,
getY,
mouseReleased |
| Methods inherited from class com.rolemodelsoft.drawlet.basics.AbstractInputEventHandler |
keyPressed,
keyReleased,
keyTyped,
mouseClicked,
mouseEntered,
mouseExited,
mouseMoved,
mouseSingleClicked |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public GraphNodeTool(DrawingCanvas canvas)
canvas - the canvas this tool will draw on/manipulate| Method Detail |
protected GraphNode basicNewGraphNode()
protected void mouseDoubleClicked(java.awt.event.MouseEvent e)
e - the eventAbstractInputEventHandler.mouseClicked(java.awt.event.MouseEvent)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||