org.jhotdraw.draw.decoration
Class GeneralPathTip

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

public class GeneralPathTip
extends AbstractLineDecoration

A LineDecoration which draws a general path.

Version:
$Id: GeneralPathTip.java -1 $
Author:
Werner Randelshofer
See Also:
Serialized Form

Field Summary
(package private)  double decorationRadius
           
private  java.awt.geom.Path2D.Double path
           
 
Constructor Summary
GeneralPathTip(java.awt.geom.Path2D.Double path, double decorationRadius)
          Creates a new instance.
GeneralPathTip(java.awt.geom.Path2D.Double path, double decorationRadius, boolean isFilled, boolean isStroked, boolean isSolid)
           
 
Method Summary
protected  java.awt.geom.Path2D.Double getDecoratorPath(Figure f)
          Hook method to calculate the path of the decorator.
protected  double getDecoratorPathRadius(Figure f)
          Hook method to calculate the radius of the decorator path.
 
Methods inherited from class org.jhotdraw.draw.decoration.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
 

Field Detail

path

private java.awt.geom.Path2D.Double path

decorationRadius

double decorationRadius
Constructor Detail

GeneralPathTip

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


GeneralPathTip

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

getDecoratorPath

protected java.awt.geom.Path2D.Double getDecoratorPath(Figure f)
Description copied from class: AbstractLineDecoration
Hook method to calculate 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 calculate the radius of the decorator path.

Specified by:
getDecoratorPathRadius in class AbstractLineDecoration