public class HotFrontShapeDecoration extends AbstractShapeDecoration
Modifier and Type | Field and Description |
---|---|
static java.awt.Color |
COLOR
We use to draw them red !
|
LEFT, RIGHT
Constructor and Description |
---|
HotFrontShapeDecoration(int length,
int width,
int orientation)
Constructor.
|
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
|
boolean |
isFilled()
Returns the filled boolean.
|
void |
setFilled(boolean filled)
Sets the filled (draw a half disk or a half circle ?).
|
getLength, getOrientation, getPaint, getStroke, getWidth, restoreGraphics, revert, setGraphics, setLength, setOrientation, setPaint, setStroke, setWidth
public HotFrontShapeDecoration(int length, int width, int orientation)
length
- width
- orientation
- public void draw(java.awt.Graphics g, java.awt.geom.Point2D[] points, boolean complete)
ShapeDecoration
points
- the polylinecomplete
- true if the polyline length equals the
decoration lengthShapeDecoration.draw(Graphics,
Point2D[], boolean)
public boolean isFilled()
public void setFilled(boolean filled)
filled
- The filled to setCopyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details