com.partnersoft.maps.ephemera
Class PolylineEphemeron

java.lang.Object
  extended by com.partnersoft.maps.ephemera.PolylineEphemeron
All Implemented Interfaces:
Ephemeron
Direct Known Subclasses:
CentroidMoveEphemeron, CentroidPixelMoveEphemeron, CentroidRotateEphemeron, RelativePolylineEphemeron, ScalePolylineEphemeron

public class PolylineEphemeron
extends java.lang.Object
implements Ephemeron

Draws passed polyline.

Copyright 2007 Paul Reavis

Version:
$Id$
Author:
Rich Stepanski

Field Summary
protected  MapApp app
           
protected  java.lang.String lineStyle
           
protected  MapSet mapset
           
protected  XyPolyline polyline
           
 
Constructor Summary
PolylineEphemeron(MapApp app, MapSet mapset, XyPolyline polyline, java.lang.String lineStyle)
          Creates a new PolylineEphemeron object.
 
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.
 XyPolyline getPolyline()
           
 void setPolyline(XyPolyline line)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

polyline

protected XyPolyline polyline

lineStyle

protected java.lang.String lineStyle

app

protected MapApp app

mapset

protected MapSet mapset
Constructor Detail

PolylineEphemeron

public PolylineEphemeron(MapApp app,
                         MapSet mapset,
                         XyPolyline polyline,
                         java.lang.String lineStyle)
Creates a new PolylineEphemeron object. Will draw passed polyline.

Parameters:
polyline -
Method Detail

setPolyline

public final void setPolyline(XyPolyline line)

getPolyline

public final XyPolyline getPolyline()

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