JHotDraw 7.0.6

org.jhotdraw.samples.svg
Class PathTool

java.lang.Object
  extended by org.jhotdraw.draw.AbstractTool
      extended by org.jhotdraw.draw.BezierTool
          extended by org.jhotdraw.samples.svg.PathTool
All Implemented Interfaces:
java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener, Tool

public class PathTool
extends BezierTool

Tool to scribble a SVGPath


Field Summary
 
Fields inherited from class org.jhotdraw.draw.BezierTool
attributes, createdFigure
 
Fields inherited from class org.jhotdraw.draw.AbstractTool
anchor, editor, isWorking, listenerList
 
Constructor Summary
PathTool(SVGPath pathPrototype, BezierFigure bezierPrototype)
          Creates a new instance.
PathTool(SVGPath pathPrototype, BezierFigure bezierPrototype, java.util.Map attributes)
          Creates a new instance.
 
Method Summary
protected  SVGPath createPath()
           
protected  void finishCreation(BezierFigure createdFigure)
           
 
Methods inherited from class org.jhotdraw.draw.BezierTool
activate, addPointToFigure, createFigure, deactivate, getAddedFigure, getCreatedFigure, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased
 
Methods inherited from class org.jhotdraw.draw.AbstractTool
addToolListener, addUndoableEditListener, constrainPoint, constrainPoint, draw, editCopy, editCut, editDelete, editDuplicate, editPaste, fireAreaInvalidated, fireAreaInvalidated, fireToolDone, fireToolStarted, getDrawing, getEditor, getView, isActive, keyPressed, keyReleased, keyTyped, mouseEntered, mouseExited, removeToolListener, removeUndoableEditListener, updateCursor, viewToDrawing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathTool

public PathTool(SVGPath pathPrototype,
                BezierFigure bezierPrototype)
Creates a new instance.


PathTool

public PathTool(SVGPath pathPrototype,
                BezierFigure bezierPrototype,
                java.util.Map attributes)
Creates a new instance.

Method Detail

createPath

protected SVGPath createPath()

finishCreation

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

Copyright 1996-2006 © JHotDraw.org