private static Area valueOf(int i) {
      switch (i) {
      case 0:
        return NORTH;
      case 1:
        return NORTHEAST;
      case 2:
        return EAST;
      case 3:
        return SOUTHEAST;
      case 4:
        return SOUTH;
      case 5:
        return SOUTHWEST;
      case 6:
        return WEST;
      case 7:
        return NORTHWEST;
      default:
        return UNKNOWN;
      }
    }