com.partnersoft.staker.ephemera
Class DeflectionAngleEphemeron

java.lang.Object
  extended by 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
 

Constructor Detail

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 numbers
anchor - - used to anchor text, and as vertex of angle if anchorParent is null
anchorParent - - used as vertex of angle
anchorGrandParent - - used to calculate deflection angle
lineStyle - - line style to use for drawing
textStyle - - text style to use for writing
Method Detail

draw

public void draw(DrawingSurface surface,
                 MapViewFrame frame,
                 XyPoint mousePosition)