public class CentroidRotateEphemeron extends PolylineEphemeron
| Modifier and Type | Field and Description |
|---|---|
protected XyPoint |
centroid |
protected XyPolyline |
original |
app, lineStyle, mapset, polyline| Constructor and Description |
|---|
CentroidRotateEphemeron(MapApp app,
MapSet mapset,
XyPolyline polyline,
java.lang.String lineStyle)
Handles rotating a polyline around its centroid.
|
CentroidRotateEphemeron(MapApp app,
MapSet mapset,
XyPolyline polyline,
java.lang.String lineStyle,
XyPoint anchor)
Handles rotating a polyline around passed anchor point.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getPolyline, setPolylineprotected XyPolyline original
protected XyPoint centroid
public CentroidRotateEphemeron(MapApp app, MapSet mapset, XyPolyline polyline, java.lang.String lineStyle)
app - - valid appmapset - - mapset containing line stylepolyline - - line to drawlineStyle - - name of line style to usepublic CentroidRotateEphemeron(MapApp app, MapSet mapset, XyPolyline polyline, java.lang.String lineStyle, XyPoint anchor)
app - - valid appmapset - - mapset containing line stylepolyline - - line to drawlineStyle - - name of line style to useanchor - - XyPoint to rotate aroundpublic void draw(DrawingSurface surface, MapViewFrame frame, XyPoint mousePosition)
Ephemerondraw in interface Ephemerondraw in class PolylineEphemeron