|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.allen_sauer.gwt.dnd.client.util.AbstractLocation
public abstract class AbstractLocation
Provides default method implementations.
Constructor Summary | |
---|---|
AbstractLocation()
|
Method Summary | |
---|---|
Location |
newLocationSnappedToGrid(int gridX,
int gridY)
Return a new location, snapped to the grid based on a spacing of (gridX, gridY) . |
java.lang.String |
toString()
Textual representation of this location formatted as (x, y) . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.allen_sauer.gwt.dnd.client.util.Location |
---|
getLeft, getTop |
Constructor Detail |
---|
public AbstractLocation()
Method Detail |
---|
public Location newLocationSnappedToGrid(int gridX, int gridY)
Location
(gridX, gridY)
.
newLocationSnappedToGrid
in interface Location
gridX
- the horizontal grid spacing in pixelsgridY
- the vertical grid spacing in pixels
public java.lang.String toString()
(x, y)
.
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |