org.jhotdraw.contrib
Class CompositeFigureCreationTool
java.lang.Object
org.jhotdraw.standard.AbstractTool
org.jhotdraw.standard.CreationTool
org.jhotdraw.contrib.CompositeFigureCreationTool
- All Implemented Interfaces:
- Tool
- public class CompositeFigureCreationTool
- extends CreationTool
- Version:
- <$CURRENT_VERSION$>
Methods inherited from class org.jhotdraw.standard.CreationTool |
activate, createFigure, createUndoActivity, deactivate, getAddedFigure, getAddedFigures, getCreatedFigure, getPrototypeFigure, mouseDrag, mouseUp, setAddedFigure, setAddedFigures, setCreatedFigure, setPrototypeFigure |
Methods inherited from class org.jhotdraw.standard.AbstractTool |
addToolListener, checkUsable, createEventDispatcher, createViewChangeListener, drawing, editor, getActiveDrawing, getActiveView, getAnchorX, getAnchorY, getEventDispatcher, getUndoActivity, isActive, isEnabled, isUsable, keyDown, 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 |
CompositeFigureCreationTool
public CompositeFigureCreationTool(DrawingEditor newDrawingEditor,
Figure prototype)
mouseDown
public void mouseDown(java.awt.event.MouseEvent e,
int x,
int y)
- Description copied from class:
CreationTool
- Creates a new figure by cloning the prototype.
- Specified by:
mouseDown
in interface Tool
- Overrides:
mouseDown
in class CreationTool
mouseMove
public void mouseMove(java.awt.event.MouseEvent e,
int x,
int y)
- Description copied from class:
AbstractTool
- Handles mouse moves (if the mouse button is up).
- Specified by:
mouseMove
in interface Tool
- Overrides:
mouseMove
in class AbstractTool
setContainerFigure
protected void setContainerFigure(CompositeFigure newContainerFigure)
getContainerFigure
public CompositeFigure getContainerFigure()
toolDone
protected void toolDone()