@Nullable
  public static Cursor getResizeCursor(int direction) {
    int cursor;
    if (direction == Position.NORTH_WEST) {
      cursor = Cursor.NW_RESIZE_CURSOR;
    }
    else if (direction == Position.NORTH) {
      cursor = Cursor.N_RESIZE_CURSOR;
    }
    else if (direction == Position.NORTH_EAST) {
      cursor = Cursor.NE_RESIZE_CURSOR;
    }
    else if (direction == Position.WEST) {
      cursor = Cursor.W_RESIZE_CURSOR;
    }
    else if (direction == Position.EAST) {
      cursor = Cursor.E_RESIZE_CURSOR;
    }
    else if (direction == Position.SOUTH_WEST) {
      cursor = Cursor.SW_RESIZE_CURSOR;
    }
    else if (direction == Position.SOUTH) {
      cursor = Cursor.S_RESIZE_CURSOR;
    }
    else if (direction == Position.SOUTH_EAST) {
      cursor = Cursor.SE_RESIZE_CURSOR;
    }
    else {
      return null;
    }
    return Cursor.getPredefinedCursor(cursor);
  }
@Nullable
  public static Cursor getResizeCursor(int direction)