com.imagero.swing.drag
Interface GridChecker
- All Known Implementing Classes:
- DefaultGridChecker, NoOpChecker
- public interface GridChecker
|
Method Summary |
int |
checkX(int x)
test if supplied cordinate in near to grid |
int |
checkX(int x0,
int x1)
|
int |
checkY(int y)
|
int |
checkY(int y0,
int y1)
|
void |
reset()
|
checkX
public int checkX(int x)
- test if supplied cordinate in near to grid
- Returns:
- difference between current point and nearest grid point (if not too far)
checkY
public int checkY(int y)
checkX
public int checkX(int x0,
int x1)
checkY
public int checkY(int y0,
int y1)
reset
public void reset()