com.imagero.gui.flowin.util
Class DefaultGridChecker
java.lang.Object
com.imagero.gui.flowin.util.DefaultGridChecker
- All Implemented Interfaces:
- GridChecker
- public class DefaultGridChecker
- extends java.lang.Object
- implements GridChecker
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultGridChecker
public DefaultGridChecker(int gridX,
int gridY)
DefaultGridChecker
public DefaultGridChecker(int gridX,
int gridY,
int snapZone,
int releaseZone)
checkX
public int checkX(int x)
- Description copied from interface:
GridChecker
- test if supplied cordinate in near to grid
- Specified by:
checkX in interface GridChecker
- Returns:
- difference between current point and nearest grid point (if not too far)
checkX
public int checkX(int x0,
int x1)
- Specified by:
checkX in interface GridChecker
checkY
public int checkY(int y)
- Specified by:
checkY in interface GridChecker
checkY
public int checkY(int y0,
int y1)
- Specified by:
checkY in interface GridChecker
getGridX
public int getGridX()
getGridY
public int getGridY()
getReleaseZone
public int getReleaseZone()
getSnapZone
public int getSnapZone()
isActive
public boolean isActive()
reset
public void reset()
- call it just before first check or after last check
- Specified by:
reset in interface GridChecker
setActive
public void setActive(boolean active)
setGrid
public void setGrid(int gridX,
int gridY)