com.partnersoft.maps.ephemera
Class CentroidMoveEphemeron
java.lang.Object
com.partnersoft.maps.ephemera.PolylineEphemeron
com.partnersoft.maps.ephemera.CentroidMoveEphemeron
- All Implemented Interfaces:
- Ephemeron
public class CentroidMoveEphemeron
- extends PolylineEphemeron
Copyright 2008 Partner Software, Inc.
- Version:
- $Id$
- Author:
- Rich Stepanski
|
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 |
original
protected XyPolyline original
centroid
protected XyPoint centroid
CentroidMoveEphemeron
public CentroidMoveEphemeron(MapApp app,
MapSet mapset,
XyPolyline polyline,
java.lang.String lineStyle)
- Handles displaying the movement of a polyline without mangling. Uses the line's
centroid as comparison point for the move.
- Parameters:
app - - valid appmapset - - mapset given lineStyle lives inpolyline - - polyline to drawlineStyle - - lineStyle name
CentroidMoveEphemeron
public CentroidMoveEphemeron(MapApp app,
MapSet mapset,
XyPolyline polyline,
java.lang.String lineStyle,
XyPoint anchor)
- Handles displaying the movement of a polyline without mangling. Uses the
passed point as comparison point for the move.
- Parameters:
app - - valid appmapset - - mapset given lineStyle lives inpolyline - - polyline to drawlineStyle - - lineStyle name
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