int h = (rowHeight + rowMargin); int delta = h * direction;   if (orientation == SwingConstants.VERTICAL)
int unit; if (orientation == SwingConstants.HORIZONTAL) unit = 100; else
  public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation,                                        int direction)  {    int h = (rowHeight + rowMargin);    int delta = h * direction;    // Round so that the top would start from the row boundary    if (orientation == SwingConstants.VERTICAL)      {        // Completely expose the top row        int near = ((visibleRect.y + delta + h / 2) / h) * h;        int diff = visibleRect.y + delta - near;        delta -= diff;      }    return delta;    // TODO when scrollng horizontally, scroll into the column boundary.  }