|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ShapeDecoration
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 |
|---|
static final int RIGHT
static final int LEFT
| Method Detail |
|---|
float getLength()
float getWidth()
int getOrientation()
void setOrientation(int orientation)
orientation - The orientation to setvoid revert()
revert in interface Revertable
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 lengthShapeDecorator.draw(Graphics, Point2D[])
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||