net.sf.kagiru.navigation
Class SimpleNavigationWrapper

java.lang.Object
  extended by net.sf.kagiru.navigation.NavigationWrapper
      extended by net.sf.kagiru.navigation.SimpleNavigationWrapper
All Implemented Interfaces:
java.io.Serializable

public class SimpleNavigationWrapper
extends NavigationWrapper

Will simply stay in the puzzle: - if you're at the last row and go down, you go to the first (and visa versa) - same hold for columns and right/left. Stays at all times in the column or row.

See Also:
Serialized Form

Constructor Summary
SimpleNavigationWrapper()
           
 
Method Summary
protected  int wrapColumn(int rawColumn, int rawRow, Puzzle puzzle)
           
protected  int wrapRow(int rawColumn, int rawRow, Puzzle puzzle)
           
 
Methods inherited from class net.sf.kagiru.navigation.NavigationWrapper
wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleNavigationWrapper

public SimpleNavigationWrapper()
Method Detail

wrapColumn

protected int wrapColumn(int rawColumn,
                         int rawRow,
                         Puzzle puzzle)
Specified by:
wrapColumn in class NavigationWrapper

wrapRow

protected int wrapRow(int rawColumn,
                      int rawRow,
                      Puzzle puzzle)
Specified by:
wrapRow in class NavigationWrapper


This code documentation is disclosed as part of Kagiru Sudoku. It is licensed under the GNU General Public License (GPL) and comes with NO WARRANTY. See file license.txt for more info.