public class SnapWithDistance extends java.lang.Object implements Ephemeron
Copyright 2007 Paul Reavis
| Modifier and Type | Field and Description |
|---|---|
protected XyPoint |
anchor |
protected MapApp |
app |
protected StretchFromPointWithDistance |
nonSnapEphemeron |
protected NameSet |
targetDataTypes |
protected java.lang.String |
targetMapset |
| Constructor and Description |
|---|
SnapWithDistance(MapApp app,
XyPoint anchor,
NameSet targetDataTypes,
java.lang.String targetMapset,
java.lang.String lineStyle,
java.lang.String textStyle)
Creates a new SnapWithDistance object.
|
| 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.
|
protected XyPoint anchor
protected StretchFromPointWithDistance nonSnapEphemeron
protected java.lang.String targetMapset
protected NameSet targetDataTypes
protected MapApp app
public SnapWithDistance(MapApp app, XyPoint anchor, NameSet targetDataTypes, java.lang.String targetMapset, java.lang.String lineStyle, java.lang.String textStyle)
app - - Valid app.anchor - - Point to draw from.targetDataTypes - - data types to attempt to snap to.targetMapset - - name of mapset containing target data types.lineStyle - - line style to draw. Passed to StretchFromPointsWithDistance.textStyle - - text style to draw. Passed to StretchFromPointsWithDistance.public void draw(DrawingSurface surface, MapViewFrame frame, XyPoint mousePosition)
Ephemeron