com.partnersoft.maps.ephemera
Class RotatePoint

java.lang.Object
  extended by com.partnersoft.maps.ephemera.RotatePoint
All Implemented Interfaces:
Ephemeron

public class RotatePoint
extends java.lang.Object
implements Ephemeron

Rotational ephemeron, spinning an angle display as you move the mouse around an anchor point.

Copyright 2007 Paul Reavis

Version:
$Id: RotatePoint.java 2013 2009-08-10 03:29:31Z paul $
Author:
Paul Reavis

Constructor Summary
RotatePoint(XyPoint anchor)
          Create a new RotatePoint object with the given anchor point.
RotatePoint(XyPoint anchor, java.lang.String lineStyleName)
          Create a new RotatePoint object with the given anchor point.
 
Method Summary
 void draw(DrawingSurface surface, MapViewFrame frame, XyPoint mousePosition)
          Draw appropriate graphics on the given surface with the given frame, mouse position, and any implementation-specific internal state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RotatePoint

public RotatePoint(XyPoint anchor,
                   java.lang.String lineStyleName)
Create a new RotatePoint object with the given anchor point. It will draw a rotation indicator as you move the mouse around the point.


RotatePoint

public RotatePoint(XyPoint anchor)
Create a new RotatePoint object with the given anchor point. It will draw a rotation indicator as you move the mouse around the point.

Method Detail

draw

public void draw(DrawingSurface surface,
                 MapViewFrame frame,
                 XyPoint mousePosition)
Description copied from interface: Ephemeron
Draw appropriate graphics on the given surface with the given frame, mouse position, and any implementation-specific internal state. The drawing surface is set up with the given frame, and is in map coordinates (not pixels).

Specified by:
draw in interface Ephemeron