com.partnersoft.staker.ephemera
Class DeflectionAngleEphemeron
java.lang.Object
com.partnersoft.staker.ephemera.DeflectionAngleEphemeron
public class DeflectionAngleEphemeron
- extends java.lang.Object
Deflection ephemeron, spinning an angle display as you move the mouse around
an anchor point. Displays angle and distance.
Copyright 2007 Paul Reavis
|
Constructor Summary |
DeflectionAngleEphemeron(java.lang.String label,
XyPoint anchor,
XyPoint anchorParent,
XyPoint anchorGrandParent,
java.lang.String lineStyle,
java.lang.String textStyle)
Create a new RotatePoint 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 |
DeflectionAngleEphemeron
public DeflectionAngleEphemeron(java.lang.String label,
XyPoint anchor,
XyPoint anchorParent,
XyPoint anchorGrandParent,
java.lang.String lineStyle,
java.lang.String textStyle)
- Create a new RotatePoint object with the given anchor point. It will draw
a rotation indicator as you move the mouse around the point.
- Parameters:
label - - mode or other text to display above the numbersanchor - -
used to anchor text, and as vertex of angle if anchorParent is
nullanchorParent - -
used as vertex of angleanchorGrandParent - -
used to calculate deflection anglelineStyle - -
line style to use for drawingtextStyle - -
text style to use for writing
draw
public void draw(DrawingSurface surface,
MapViewFrame frame,
XyPoint mousePosition)