|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A ShapeDecoration is a basic element to be drawn along a path by a ShapeDecorator. The decoration length is measured along the path to decorate, the width, on a normal to the path. The decoration may be on the left or on the right of the path.
| Field Summary | |
static int |
LEFT
The left orientation constant |
static int |
RIGHT
The right orientation constant |
| Method Summary | |
void |
draw(java.awt.Graphics g,
java.awt.geom.Point2D[] points,
boolean complete)
Draws itself along the specified polyline Called by ShapeDecorator |
float |
getLength()
Returns the length. |
int |
getOrientation()
Returns the orientation. |
float |
getWidth()
Returns the width. |
void |
revert()
reverts the orientation |
void |
setOrientation(int orientation)
Sets the orientation. |
| Field Detail |
public static final int RIGHT
public static final int LEFT
| Method Detail |
public float getLength()
public float getWidth()
public int getOrientation()
public void setOrientation(int orientation)
orientation - The orientation to setpublic void revert()
revert in interface Revertable
public void draw(java.awt.Graphics g,
java.awt.geom.Point2D[] points,
boolean complete)
g - points - the polylinecomplete - true if the polyline length equals the
decoration lengthfr.free.lepicier.awt.ShapeDecorator#draw(Graphics,
Point2D)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||