com.partnersoft.staker.ephemera
Class OffsetRotatePointWithAngle

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

Constructor Detail

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 point
lineStyle - - line style to draw with
textStyle - - text style to write with
offsetX - - pixel offset for X
offsetY - - 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 point
offsetX - - pixel offset for X
offsetY - - pixel offset for Y
Method Detail

draw

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