public class GeneralPathTip extends AbstractLineDecoration
LineDecoration
which draws a general path.Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
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.
|
draw, getDecorationRadius, getDrawingArea, isFilled, isSolid, isStroked, setFilled, setSolid, setStroked
public GeneralPathTip(java.awt.geom.Path2D.Double path, double decorationRadius)
public GeneralPathTip(java.awt.geom.Path2D.Double path, double decorationRadius, boolean isFilled, boolean isStroked, boolean isSolid)
protected java.awt.geom.Path2D.Double getDecoratorPath(Figure f)
AbstractLineDecoration
getDecoratorPath
in class AbstractLineDecoration
protected double getDecoratorPathRadius(Figure f)
AbstractLineDecoration
getDecoratorPathRadius
in class AbstractLineDecoration