|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.standard.AbstractTool
org.jhotdraw.standard.ActionTool
org.jhotdraw.figures.BorderTool
BorderTool decorates the clicked figure with a BorderDecorator.
BorderDecorator
Nested Class Summary | |
static class |
BorderTool.UndoActivity
|
Nested classes inherited from class org.jhotdraw.standard.AbstractTool |
AbstractTool.EventDispatcher |
Constructor Summary | |
BorderTool(DrawingEditor editor)
|
Method Summary | |
void |
action(Figure figure)
Decorates the clicked figure with a border. |
protected Undoable |
createUndoActivity()
Factory method for undo activity |
void |
mouseDown(java.awt.event.MouseEvent e,
int x,
int y)
Add the touched figure to the selection of an invoke action. |
void |
reverseAction(Figure figure)
Peels off the border from the clicked figure. |
Methods inherited from class org.jhotdraw.standard.ActionTool |
mouseUp |
Methods inherited from class org.jhotdraw.standard.AbstractTool |
activate, addToolListener, checkUsable, createEventDispatcher, createViewChangeListener, deactivate, drawing, editor, getActiveDrawing, getActiveView, getAnchorX, getAnchorY, getEventDispatcher, getUndoActivity, isActive, isEnabled, isUsable, keyDown, mouseDrag, mouseMove, removeToolListener, setAnchorX, setAnchorY, setEditor, setEnabled, setUndoActivity, setUsable, setView, view, viewCreated, viewDestroying, viewSelectionChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BorderTool(DrawingEditor editor)
Method Detail |
public void mouseDown(java.awt.event.MouseEvent e, int x, int y)
mouseDown
in interface Tool
mouseDown
in class ActionTool
action(org.jhotdraw.framework.Figure)
public void action(Figure figure)
action
in class ActionTool
public void reverseAction(Figure figure)
protected Undoable createUndoActivity()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |