Class SlantedAdjacentGraphBuilder

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected int calcSlant​(int y)  
      protected java.util.List<com.nulabinc.zxcvbn.matchers.Keyboard.AdjacentGraphBuilder.Position> getAdjacentCoords​(com.nulabinc.zxcvbn.matchers.Keyboard.AdjacentGraphBuilder.Position position)
      returns the six adjacent coordinates on a standard keyboard, where each row is slanted to the right from the last.
      boolean isSlanted()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SlantedAdjacentGraphBuilder

        public SlantedAdjacentGraphBuilder​(java.lang.String layout)
    • Method Detail

      • getAdjacentCoords

        protected java.util.List<com.nulabinc.zxcvbn.matchers.Keyboard.AdjacentGraphBuilder.Position> getAdjacentCoords​(com.nulabinc.zxcvbn.matchers.Keyboard.AdjacentGraphBuilder.Position position)
        returns the six adjacent coordinates on a standard keyboard, where each row is slanted to the right from the last. adjacencies are clockwise, starting with key to the left, then two keys above, then right key, then two keys below. (that is, only near-diagonal keys are adjacent, so g's coordinate is adjacent to those of t,y,b,v, but not those of r,u,n,c.)
        Specified by:
        getAdjacentCoords in class Keyboard.AdjacentGraphBuilder