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, setStrokedpublic PerpendicularBar()
public PerpendicularBar(double height)
protected java.awt.geom.Path2D.Double getDecoratorPath(Figure f)
getDecoratorPath in class AbstractLineDecorationprotected double getDecoratorPathRadius(Figure f)
getDecoratorPathRadius in class AbstractLineDecorationpublic void read(DOMInput in)
read in interface DOMStorablepublic void write(DOMOutput out)
write in interface DOMStorable