Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.imagero.gui.flowin.util
Class DefaultGridChecker  view DefaultGridChecker download DefaultGridChecker.java

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

public class DefaultGridChecker
extends java.lang.Object
implements GridChecker


Field Summary
(package private)  boolean active
           
(package private)  int gridX
           
(package private)  int gridY
           
(package private)  int releaseZone
           
(package private)  boolean snapX
           
(package private)  boolean snapY
           
(package private)  int snapZone
           
 
Constructor Summary
DefaultGridChecker(int gridX, int gridY)
           
DefaultGridChecker(int gridX, int gridY, int snapZone, int releaseZone)
           
 
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)
           
 int getGridX()
           
 int getGridY()
           
 int getReleaseZone()
           
 int getSnapZone()
           
 boolean isActive()
           
 void reset()
          call it just before first check or after last check
 void setActive(boolean active)
           
 void setGrid(int gridX, int gridY)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gridX

int gridX

gridY

int gridY

snapZone

int snapZone

releaseZone

int releaseZone

snapX

boolean snapX

snapY

boolean snapY

active

boolean active
Constructor Detail

DefaultGridChecker

public DefaultGridChecker(int gridX,
                          int gridY)

DefaultGridChecker

public DefaultGridChecker(int gridX,
                          int gridY,
                          int snapZone,
                          int releaseZone)
Method Detail

reset

public void reset()
call it just before first check or after last check

Specified by:
reset in interface GridChecker

setGrid

public void setGrid(int gridX,
                    int gridY)

getGridX

public int getGridX()

getGridY

public int getGridY()

getSnapZone

public int getSnapZone()

getReleaseZone

public int getReleaseZone()

isActive

public boolean isActive()

setActive

public void setActive(boolean active)

checkX

public int checkX(int x0,
                  int x1)
Specified by:
checkX in interface GridChecker

checkY

public int checkY(int y0,
                  int y1)
Specified by:
checkY in interface GridChecker

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

checkY

public int checkY(int y)
Specified by:
checkY in interface GridChecker