JHotDraw 7.1

org.jhotdraw.draw
Class GeneralPathTip

java.lang.Object
  extended by org.jhotdraw.draw.AbstractLineDecoration
      extended by org.jhotdraw.draw.GeneralPathTip
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, LineDecoration

public class GeneralPathTip
extends AbstractLineDecoration

GeneralPathLineDecoration.

Version:
2.0 2006-01-14 Changed to support double precison coordinates.
1.0 4. Februar 2004 Created.
Author:
Werner Randelshofer
See Also:
Serialized Form

Constructor Summary
GeneralPathTip(java.awt.geom.GeneralPath path, double decorationRadius)
          Creates a new instance.
GeneralPathTip(java.awt.geom.GeneralPath path, double decorationRadius, boolean isFilled, boolean isStroked, boolean isSolid)
           
 
Method Summary
protected  java.awt.geom.GeneralPath getDecoratorPath(Figure f)
          Hook method to calculates the path of the decorator.
protected  double getDecoratorPathRadius(Figure f)
          Hook method to calculates the radius of the decorator path.
 
Methods inherited from class org.jhotdraw.draw.AbstractLineDecoration
draw, getDecorationRadius, getDrawingArea, isFilled, isSolid, isStroked, setFilled, setSolid, setStroked
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneralPathTip

public GeneralPathTip(java.awt.geom.GeneralPath path,
                      double decorationRadius)
Creates a new instance.


GeneralPathTip

public GeneralPathTip(java.awt.geom.GeneralPath path,
                      double decorationRadius,
                      boolean isFilled,
                      boolean isStroked,
                      boolean isSolid)
Method Detail

getDecoratorPath

protected java.awt.geom.GeneralPath getDecoratorPath(Figure f)
Description copied from class: AbstractLineDecoration
Hook method to calculates the path of the decorator.

Specified by:
getDecoratorPath in class AbstractLineDecoration

getDecoratorPathRadius

protected double getDecoratorPathRadius(Figure f)
Description copied from class: AbstractLineDecoration
Hook method to calculates the radius of the decorator path.

Specified by:
getDecoratorPathRadius in class AbstractLineDecoration

Copyright 1996-2007 (c) JHotDraw.org.
Some rights reserved.