org.jhotdraw.samples.odg
Class PathTool
java.lang.Object
org.jhotdraw.beans.AbstractBean
org.jhotdraw.draw.tool.AbstractTool
org.jhotdraw.draw.tool.BezierTool
org.jhotdraw.samples.odg.PathTool
- All Implemented Interfaces:
- java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, Tool
public class PathTool
- extends BezierTool
Tool to scribble a ODGPath
- Version:
- $Id: PathTool.java 717 2010-11-21 12:30:57Z rawcoder $
- Author:
- Werner Randelshofer
- See Also:
- Serialized Form
Methods inherited from class org.jhotdraw.draw.tool.BezierTool |
activate, addPointToFigure, calculateFittedCurve, createFigure, deactivate, draw, fireUndoEvent, getAddedFigure, getCreatedFigure, getPresentationName, isToolDoneAfterCreation, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, setToolDoneAfterCreation |
Methods inherited from class org.jhotdraw.draw.tool.AbstractTool |
addToolListener, addUndoableEditListener, constrainPoint, constrainPoint, createActionMap, createInputMap, editCopy, editCut, editDelete, editDuplicate, editPaste, fireAreaInvalidated, fireAreaInvalidated, fireBoundsInvalidated, fireToolDone, fireToolStarted, getActionMap, getDrawing, getEditor, getInputMap, getToolTipText, getView, isActive, keyPressed, keyReleased, keyTyped, maybeFireBoundsInvalidated, mouseEntered, mouseExited, removeToolListener, removeUndoableEditListener, setActionMap, setInputMap, supportsHandleInteraction, updateCursor, viewToDrawing |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PathTool
public PathTool(SVGPathFigure pathPrototype,
SVGBezierFigure bezierPrototype)
- Creates a new instance.
PathTool
public PathTool(SVGPathFigure pathPrototype,
SVGBezierFigure bezierPrototype,
@Nullable
java.util.Map<AttributeKey,java.lang.Object> attributes)
- Creates a new instance.
createPath
protected SVGPathFigure createPath()
finishCreation
protected void finishCreation(BezierFigure createdFigure,
DrawingView creationView)
- Overrides:
finishCreation
in class BezierTool