com.partnersoft.maps.ephemera
Class RelativePolylineEphemeron

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

public class RelativePolylineEphemeron
extends PolylineEphemeron

Draws a XyPolyline with coordinates relative to the XyPoint passed to draw().

ie. XyPolyline { (0,0), (10,10), (100,100) } with a mouse position of 10000, 10000 would be drawn at { (10000,10000), (10010,10010), (10100,10100) }.

Author:
Rich Stepanski

Field Summary
 
Fields inherited from class com.partnersoft.maps.ephemera.PolylineEphemeron
app, lineStyle, mapset, polyline
 
Constructor Summary
RelativePolylineEphemeron(MapApp app, MapSet mapset, XyPolyline polyline, java.lang.String lineStyle)
          Creates a new RelativePolylineEphemeron with relative XyPolyline arguement.
 
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 com.partnersoft.maps.ephemera.PolylineEphemeron
getPolyline, setPolyline
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelativePolylineEphemeron

public RelativePolylineEphemeron(MapApp app,
                                 MapSet mapset,
                                 XyPolyline polyline,
                                 java.lang.String lineStyle)
Creates a new RelativePolylineEphemeron with relative XyPolyline arguement. Line is drawn with style in passed mapset with passed name.

Parameters:
app - - Valid MapApp.
mapset - - MapSet containing style to draw.
polyline - - Relative XyPolyline to be drawn.
lineStyle - - LineStyle name to use.
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
Overrides:
draw in class PolylineEphemeron