JHotDraw 7.5.1

org.jhotdraw.samples.svg
Class PathTool

java.lang.Object
  extended by org.jhotdraw.beans.AbstractBean
      extended by org.jhotdraw.draw.tool.AbstractTool
          extended by org.jhotdraw.draw.tool.BezierTool
              extended by org.jhotdraw.samples.svg.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 SVGPath

Version:
$Id: PathTool.java 647 2010-01-24 22:52:59Z rawcoder $
Author:
Werner Randelshofer
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jhotdraw.draw.tool.BezierTool
attributes, createdFigure
 
Fields inherited from class org.jhotdraw.draw.tool.AbstractTool
anchor, editor, isWorking, listenerList
 
Fields inherited from class org.jhotdraw.beans.AbstractBean
propertySupport
 
Constructor Summary
PathTool(SVGPathFigure pathPrototype, SVGBezierFigure bezierPrototype)
          Creates a new instance.
PathTool(SVGPathFigure pathPrototype, SVGBezierFigure bezierPrototype, java.util.Map<AttributeKey,java.lang.Object> attributes)
          Creates a new instance.
 
Method Summary
protected  SVGPathFigure createPath()
           
protected  void finishCreation(BezierFigure createdFigure, DrawingView creationView)
           
 
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 org.jhotdraw.beans.AbstractBean
addPropertyChangeListener, addPropertyChangeListener, clone, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathTool

public PathTool(SVGPathFigure pathPrototype,
                SVGBezierFigure bezierPrototype)
Creates a new instance.


PathTool

public PathTool(SVGPathFigure pathPrototype,
                SVGBezierFigure bezierPrototype,
                java.util.Map<AttributeKey,java.lang.Object> attributes)
Creates a new instance.

Method Detail

createPath

protected SVGPathFigure createPath()

finishCreation

protected void finishCreation(BezierFigure createdFigure,
                              DrawingView creationView)
Overrides:
finishCreation in class BezierTool

Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project.
Some rights reserved.