public class ArrowPaintHelper extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private double |
cos |
private double |
length |
private double |
sin |
Constructor and Description |
---|
ArrowPaintHelper(double radians,
double length)
Creates a new arrow helper.
|
Modifier and Type | Method and Description |
---|---|
void |
paintArrowAt(MapPath2D path,
MapViewState.MapViewPoint point,
MapViewState.MapViewPoint fromDirection)
Paint the arrow
|
private final double sin
private final double cos
private final double length
public ArrowPaintHelper(double radians, double length)
radians
- The angle of the arrow. 0 means that it lies on the current line. In radianslength
- The length of the arrow lines.public void paintArrowAt(MapPath2D path, MapViewState.MapViewPoint point, MapViewState.MapViewPoint fromDirection)
path
- The path to append the arrow to.point
- The point to paint the tip atfromDirection
- The direction the line is comming from.