public interface JaxoGrid
Modifier and Type | Method and Description |
---|---|
boolean |
isSnapped(java.awt.Point p)
Determines if 'p' is on the grid.
|
java.awt.Point |
snappedPoint(java.awt.Point p)
Closest point to 'p' on the grid.
|
void |
snapPoint(java.awt.Point p)
Change 'p' to the closest point on the grid.
|
boolean isSnapped(java.awt.Point p)
p.equals(snappedPoint(p))
.p
- The point to snap.java.awt.Point snappedPoint(java.awt.Point p)
p
- The point to snap.void snapPoint(java.awt.Point p)
p
- The point to snap.Licensed under GPL. For more information, see http://jaxodraw.sourceforge.net/license.html or the LICENSE file in the jaxodraw distribution.