com.partnersoft.maps.ephemera
Class PolylineEphemeron
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
polyline
protected XyPolyline polyline
lineStyle
protected java.lang.String lineStyle
app
protected MapApp app
mapset
protected MapSet mapset
PolylineEphemeron
public PolylineEphemeron(MapApp app,
MapSet mapset,
XyPolyline polyline,
java.lang.String lineStyle)
- Creates a new PolylineEphemeron object. Will draw passed polyline.
- Parameters:
polyline -
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