com.partnersoft.staker.ephemera
Class RotatePointWithAngle
java.lang.Object
com.partnersoft.staker.ephemera.RotatePointWithAngle
public class RotatePointWithAngle
- extends java.lang.Object
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 |
RotatePointWithAngle(XyPoint anchor)
Create a new RotatePointWithAngle object with the given anchor point. |
RotatePointWithAngle(XyPoint anchor,
java.lang.String lineStyle,
java.lang.String textStyle)
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 |
RotatePointWithAngle
public RotatePointWithAngle(XyPoint anchor,
java.lang.String lineStyle,
java.lang.String textStyle)
- 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.
- Parameters:
anchor - -
vertex pointlineStyle - -
line style to draw withtextStyle - -
text style to write with
RotatePointWithAngle
public RotatePointWithAngle(XyPoint anchor)
- 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.
- Parameters:
anchor - -
vertex point
draw
public void draw(DrawingSurface surface,
MapViewFrame frame,
XyPoint mousePosition)