JHotDraw 7.4.1

org.jhotdraw.draw.decoration
Class PerpendicularBar

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

public class PerpendicularBar
extends AbstractLineDecoration
implements DOMStorable

A LineDecoration which draws a perpendicular bar.

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.Path2D.Double 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.decoration.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.Path2D.Double 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-2010 (c) by the authors and contributors of the JHotDraw project.
Some rights reserved.