public interface Location
| Modifier and Type | Method and Description |
|---|---|
int |
getLeft()
Get x coordinate.
|
int |
getTop()
Get the y coordinate.
|
Location |
newLocationSnappedToGrid(int gridX,
int gridY)
Return a new location, snapped to the grid based on a spacing of
(gridX, gridY). |
int getLeft()
int getTop()
Location newLocationSnappedToGrid(int gridX, int gridY)
(gridX, gridY).gridX - the horizontal grid spacing in pixelsgridY - the vertical grid spacing in pixels