com.imagero.gui.flowin.util
Class NoOpChecker

java.lang.Object
  extended bycom.imagero.gui.flowin.util.NoOpChecker
All Implemented Interfaces:
GridChecker

public class NoOpChecker
extends java.lang.Object
implements GridChecker

simple GridChecker that returns always Point(0,0) (i.e. grid is not active)


Constructor Summary
NoOpChecker()
           
 
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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoOpChecker

public NoOpChecker()
Method Detail

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

reset

public void reset()
Specified by:
reset in interface GridChecker