JHotDraw 7.1

org.jhotdraw.draw
Class PerpendicularBar

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

public class PerpendicularBar
extends AbstractLineDecoration
implements DOMStorable

A perpendicular line decoration.

Author:
Huw Jones
See Also:
Serialized Form

Constructor Summary
PerpendicularBar()
          Constructs a perpendicular line with a height of 10.
PerpendicularBar(double height)
          Constructs a perpendicular line with the given height.
 
Method Summary
protected  java.awt.geom.GeneralPath getDecoratorPath(Figure f)
          Calculates the path of the decorator...a simple line perpendicular to the figure.
protected  double getDecoratorPathRadius(Figure f)
          Calculates the radius of the decorator path.
 void read(DOMInput in)
           
 void write(DOMOutput out)
           
 
Methods inherited from class org.jhotdraw.draw.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
 

Constructor Detail

PerpendicularBar

public PerpendicularBar()
Constructs a perpendicular line with a height of 10.


PerpendicularBar

public PerpendicularBar(double height)
Constructs a perpendicular line with the given height.

Method Detail

getDecoratorPath

protected java.awt.geom.GeneralPath getDecoratorPath(Figure f)
Calculates the path of the decorator...a simple line perpendicular to the figure.

Specified by:
getDecoratorPath in class AbstractLineDecoration

getDecoratorPathRadius

protected double getDecoratorPathRadius(Figure f)
Calculates the radius of the decorator path.

Specified by:
getDecoratorPathRadius in class AbstractLineDecoration

read

public void read(DOMInput in)
Specified by:
read in interface DOMStorable

write

public void write(DOMOutput out)
Specified by:
write in interface DOMStorable

Copyright 1996-2007 (c) JHotDraw.org.
Some rights reserved.