public class PointStyleRotation extends PointStyleEphemeron
Copyright 2008 Paul Reavis
| Modifier and Type | Field and Description |
|---|---|
protected XyPoint |
anchor |
protected MapApp |
app |
isPixels, mapset, offsetX, offsetY, pointStyle, rotation, snapGridSize| Constructor and Description |
|---|
PointStyleRotation(MapApp app,
MapSet mapset,
XyPoint anchor,
java.lang.String pointStyle)
Creates ephemeron that rotates passed pointstyle to match mouse.
|
| 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.
|
setSnapGridSizepublic PointStyleRotation(MapApp app, MapSet mapset, XyPoint anchor, java.lang.String pointStyle)
app - - Current MapApp, used to grab wheelmenu graphics.mapset - - Mapset that passed pointstyle lives in.anchor - - point to plant the point style (whats selected).pointStyle - - name of pointstyle to draw.public void draw(DrawingSurface surface, MapViewFrame frame, XyPoint mousePosition)
Ephemerondraw in interface Ephemerondraw in class PointStyleEphemeron