org.jhotdraw.figures
Interface LineDecoration
- All Superinterfaces:
- java.lang.Cloneable, java.io.Serializable, Storable
- All Known Implementing Classes:
- AbstractLineDecoration, ArrowTip
public interface LineDecoration
- extends Storable, java.lang.Cloneable, java.io.Serializable
Decorate the start or end point of a line or poly line figure.
LineDecoration is the base class for the different line decorations.
- Version:
- <$CURRENT_VERSION$>
- See Also:
PolyLineFigure
Method Summary |
java.awt.Rectangle |
displayBox()
|
void |
draw(java.awt.Graphics g,
int x1,
int y1,
int x2,
int y2)
Draws the decoration in the direction specified by the two points. |
draw
void draw(java.awt.Graphics g,
int x1,
int y1,
int x2,
int y2)
- Draws the decoration in the direction specified by the two points.
displayBox
java.awt.Rectangle displayBox()
- Returns:
- the display box of a LineDecoration.