public class LineShapeDecoration extends SpacingShapeDecoration
LEFT, RIGHT
Constructor and Description |
---|
LineShapeDecoration(float length)
Constructor.
|
LineShapeDecoration(float length,
java.awt.Paint paint)
Constructor.
|
LineShapeDecoration(float length,
java.awt.Paint paint,
java.awt.Stroke stroke)
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
|
getLength, getOrientation, getPaint, getStroke, getWidth, restoreGraphics, revert, setGraphics, setLength, setOrientation, setPaint, setStroke, setWidth
public LineShapeDecoration(float length)
length
- public LineShapeDecoration(float length, java.awt.Paint paint)
length
- paint
- public LineShapeDecoration(float length, java.awt.Paint paint, java.awt.Stroke stroke)
length
- paint
- stroke
- public void draw(java.awt.Graphics g, java.awt.geom.Point2D[] points, boolean complete)
ShapeDecoration
draw
in interface ShapeDecoration
draw
in class SpacingShapeDecoration
points
- the polylinecomplete
- true if the polyline length equals the
decoration lengthShapeDecoration.draw(Graphics,
Point2D[], boolean)
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details