public class Snap
extends java.lang.Object
| Constructor and Description |
|---|
Snap()
Create a disabled Snap with default resolution.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getResolution()
Get the resolution.
|
boolean |
isEnabled()
Find out if this Snap is enabled.
|
void |
setEnabled(boolean b)
Set whether to enable snapping.
|
void |
setResolution(double d)
Set the resolution.
|
void |
snap(GMLCoordinates c)
Snap a set of coordinates to the grid.
|
public void setResolution(double d)
d - The new resolution.public double getResolution()
public void setEnabled(boolean b)
b - Whether to enable snapping.public boolean isEnabled()
public void snap(GMLCoordinates c)
c - The coordinates to snap.