|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Location
Class representing a location defined by left (x) and top (y) coordinates.
| Method Summary | |
|---|---|
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). |
| Method Detail |
|---|
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||