public class PointStyleEphemeron extends java.lang.Object implements Ephemeron
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isPixels |
protected MapSet |
mapset |
protected int |
offsetX |
protected int |
offsetY |
protected java.lang.String |
pointStyle |
protected int |
rotation |
protected double |
snapGridSize |
| Constructor and Description |
|---|
PointStyleEphemeron(MapSet mapset,
java.lang.String pointStyle,
int rotation)
Draws pointstyle at mouse position with given rotation between 0-255.
|
PointStyleEphemeron(MapSet mapset,
java.lang.String pointStyle,
int rotation,
int offsetX,
int offsetY)
Draws pointstyle at mouse position with given rotation between 0-255.
|
PointStyleEphemeron(MapSet mapset,
java.lang.String pointStyle,
int rotation,
int offsetX,
int offsetY,
boolean isPixels)
Draws pointstyle at mouse position with given rotation between 0-255.
|
| 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.
|
void |
setSnapGridSize(double newSnapGridSize) |
protected MapSet mapset
protected java.lang.String pointStyle
protected int rotation
protected int offsetX
protected int offsetY
protected boolean isPixels
protected double snapGridSize
public PointStyleEphemeron(MapSet mapset, java.lang.String pointStyle, int rotation, int offsetX, int offsetY)
mapset - - mapset containing pointstyle.pointStyle - - name of pointstyle to draw.rotation - - rotation between 0-255.offsetX - - pixels to offset X.offsetY - - pixels units to offset Y.public PointStyleEphemeron(MapSet mapset, java.lang.String pointStyle, int rotation, int offsetX, int offsetY, boolean isPixels)
mapset - - mapset containing pointstyle.pointStyle - - name of pointstyle to draw.rotation - - rotation between 0-255.offsetX - - units to offset X.offsetY - - units to offset Y.isPixels - - T/F to use offset as pixels. True being use as pixels.public PointStyleEphemeron(MapSet mapset, java.lang.String pointStyle, int rotation)
mapset - - mapset containing pointstyle.pointStyle - - name of pointstyle to draw.rotation - - rotation between 0-255.public void draw(DrawingSurface surface, MapViewFrame frame, XyPoint mousePosition)
Ephemeronpublic void setSnapGridSize(double newSnapGridSize)