public interface LineDecoration
extends java.lang.Cloneable, java.io.Serializable
Typically a line decoration is set as an attribute value to a
BezierFigure using the attribute keys
org.jhotdraw.draw.AttributeKeys.START_DECORATION and
org.jhotdraw.draw.AttributeKeys.END_DECORATION.
Decorator
The start and end point of a BezierFigure can be decorated with
a line decoration.
Component: BezierFigure;
Decorator: LineDecoration.
| Modifier and Type | Method and Description |
|---|---|
void |
draw(java.awt.Graphics2D g,
Figure f,
java.awt.geom.Point2D.Double p1,
java.awt.geom.Point2D.Double p2)
Draws the decoration in the direction specified by the two Points.
|
double |
getDecorationRadius(Figure f)
Returns the radius of the decorator.
|
java.awt.geom.Rectangle2D.Double |
getDrawingArea(Figure f,
java.awt.geom.Point2D.Double p1,
java.awt.geom.Point2D.Double p2)
Returns the drawing bounds of the decorator.
|
void draw(java.awt.Graphics2D g,
Figure f,
java.awt.geom.Point2D.Double p1,
java.awt.geom.Point2D.Double p2)
double getDecorationRadius(Figure f)
java.awt.geom.Rectangle2D.Double getDrawingArea(Figure f, java.awt.geom.Point2D.Double p1, java.awt.geom.Point2D.Double p2)