public interface ShapeDecoration extends Revertable
Modifier and Type | Field and Description |
---|---|
static int |
LEFT
The left orientation constant
|
static int |
RIGHT
The right orientation constant
|
Modifier and Type | Method and Description |
---|---|
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.
|
static final int RIGHT
static final int LEFT
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[])
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details