JHotDraw 6.0b1

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.

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.
 
Methods inherited from interface org.jhotdraw.util.Storable
read, write
 

Method Detail

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.

JHotDraw 6.0b1