public class CircleShapeDecoration extends AbstractShapeDecoration
LEFT, RIGHT
Constructor and Description |
---|
CircleShapeDecoration(int length,
int radius)
Constructor.
|
CircleShapeDecoration(int length,
int radius,
java.awt.Paint paint)
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 CircleShapeDecoration(int length, int radius)
length
- number of pixels of segment to draw circle in.radius
- number of pixels for radius of circle.public CircleShapeDecoration(int length, int radius, java.awt.Paint paint)
length
- number of pixels of segment to draw circle in.radius
- number of pixels for radius of circle.paint
- the Paint to use for the circle.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