com.partnersoft.staker.ephemera
Class OffsetRotatePointWithAngle
java.lang.Object
com.partnersoft.staker.ephemera.OffsetRotatePointWithAngle
public class OffsetRotatePointWithAngle
- extends java.lang.Object
Offset rotational ephemeron, spinning an angle display as you move the mouse
around an anchor point. With angle displayed as text on opposite side of
mouse cursor from anchor.
Copyright 2007 Paul Reavis
|
Constructor Summary |
OffsetRotatePointWithAngle(XyPoint anchor,
double offsetX,
double offsetY)
Create a new RotatePointWithAngle object with the given anchor point. |
OffsetRotatePointWithAngle(XyPoint anchor,
java.lang.String lineStyle,
java.lang.String textStyle,
double offsetX,
double offsetY)
Create a new RotatePointWithAngle object with the given anchor point. |
|
Method Summary |
void |
draw(DrawingSurface surface,
MapViewFrame frame,
XyPoint mousePosition)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OffsetRotatePointWithAngle
public OffsetRotatePointWithAngle(XyPoint anchor,
java.lang.String lineStyle,
java.lang.String textStyle,
double offsetX,
double offsetY)
- Create a new RotatePointWithAngle object with the given anchor point. It
will draw a rotation indicator as you move the mouse around the point
using the given line style and write angle in given text style. Vertex is
offset from anchor in pixels based on offset values.
- Parameters:
anchor - -
vertex pointlineStyle - -
line style to draw withtextStyle - -
text style to write withoffsetX - -
pixel offset for XoffsetY - -
pixel offset for Y
OffsetRotatePointWithAngle
public OffsetRotatePointWithAngle(XyPoint anchor,
double offsetX,
double offsetY)
- Create a new RotatePointWithAngle object with the given anchor point. It
will draw a rotation indicator as you move the mouse around the point
using default 'rotation' style and write angle in default 'rotation' text
style. Vertex is offset from anchor in pixels based on offset values.
- Parameters:
anchor - -
vertex pointoffsetX - -
pixel offset for XoffsetY - -
pixel offset for Y
draw
public void draw(DrawingSurface surface,
MapViewFrame frame,
XyPoint mousePosition)