public class PerpendicularBar extends AbstractLineDecoration implements DOMStorable
LineDecoration
which draws a perpendicular bar.Constructor and Description |
---|
PerpendicularBar()
Constructs a perpendicular line with a height of 10.
|
PerpendicularBar(double height)
Constructs a perpendicular line with the given height.
|
Modifier and Type | Method and Description |
---|---|
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) |
draw, getDecorationRadius, getDrawingArea, isFilled, isSolid, isStroked, setFilled, setSolid, setStroked
public PerpendicularBar()
public PerpendicularBar(double height)
protected java.awt.geom.Path2D.Double getDecoratorPath(Figure f)
getDecoratorPath
in class AbstractLineDecoration
protected double getDecoratorPathRadius(Figure f)
getDecoratorPathRadius
in class AbstractLineDecoration
public void read(DOMInput in)
read
in interface DOMStorable
public void write(DOMOutput out)
write
in interface DOMStorable