Lines Matching refs:visibleRect

4775      * @param visibleRect the view area visible within the viewport
4783 public int getScrollableUnitIncrement(Rectangle visibleRect,
4794 leadingRow = getLeadingRow(visibleRect);
4795 leadingCol = getLeadingCol(visibleRect);
4809 leadingVisibleEdge = leadingEdge(visibleRect, orientation);
4872 * Returns <code>visibleRect.height</code> or
4873 * <code>visibleRect.width</code>,
4879 * @return <code>visibleRect.height</code> or
4880 * <code>visibleRect.width</code>
4884 public int getScrollableBlockIncrement(Rectangle visibleRect,
4891 return (rh > 0) ? Math.max(rh, (visibleRect.height / rh) * rh) :
4892 visibleRect.height;
4895 return visibleRect.width;
4900 int row = rowAtPoint(visibleRect.getLocation());
4902 int col = columnAtPoint(visibleRect.getLocation());
4905 if (cellRect.y == visibleRect.y) {
4908 return Math.max(rh, (visibleRect.height / rh) * rh);
4912 return getPreviousBlockIncrement(visibleRect, orientation);
4915 return getNextBlockIncrement(visibleRect, orientation);
4924 private int getPreviousBlockIncrement(Rectangle visibleRect,
4936 int visibleLeadingEdge = leadingEdge(visibleRect, orientation);
4944 newEdge = visibleLeadingEdge - visibleRect.height;
4945 int x = visibleRect.x + (leftToRight ? 0 : visibleRect.width);
4949 newEdge = visibleLeadingEdge - visibleRect.width;
4950 newCellLoc = new Point(newEdge, visibleRect.y);
4953 newEdge = visibleLeadingEdge + visibleRect.width;
4954 newCellLoc = new Point(newEdge - 1, visibleRect.y);
4983 // visibleRect (newCell is the leading cell, or is adjacent to
5014 private int getNextBlockIncrement(Rectangle visibleRect,
5018 int trailingRow = getTrailingRow(visibleRect);
5019 int trailingCol = getTrailingCol(visibleRect);
5027 int visibleLeadingEdge = leadingEdge(visibleRect, orientation);
5030 // visibleRect. Note that, for instance, we don't need the
5034 // enough to fill the visibleRect.
5036 return visibleRect.height;
5039 return visibleRect.width;
5054 // The visibleRect contains a single large cell. Scroll to the end
5058 else if (cellTrailingEdge == trailingEdge(visibleRect, orientation)) {
5060 // visibleRect. Again, scroll to the beginning of the next cell.
5065 // big enough to take up the entire visibleRect. Scroll so it
5073 * Return the row at the top of the visibleRect
5077 private int getLeadingRow(Rectangle visibleRect) {
5081 leadingPoint = new Point(visibleRect.x, visibleRect.y);
5084 leadingPoint = new Point(visibleRect.x + visibleRect.width - 1,
5085 visibleRect.y);
5091 * Return the column at the leading edge of the visibleRect.
5095 private int getLeadingCol(Rectangle visibleRect) {
5099 leadingPoint = new Point(visibleRect.x, visibleRect.y);
5102 leadingPoint = new Point(visibleRect.x + visibleRect.width - 1,
5103 visibleRect.y);
5109 * Return the row at the bottom of the visibleRect.
5113 private int getTrailingRow(Rectangle visibleRect) {
5117 trailingPoint = new Point(visibleRect.x,
5118 visibleRect.y + visibleRect.height - 1);
5121 trailingPoint = new Point(visibleRect.x + visibleRect.width - 1,
5122 visibleRect.y + visibleRect.height - 1);
5128 * Return the column at the trailing edge of the visibleRect.
5132 private int getTrailingCol(Rectangle visibleRect) {
5136 trailingPoint = new Point(visibleRect.x + visibleRect.width - 1,
5137 visibleRect.y);
5140 trailingPoint = new Point(visibleRect.x, visibleRect.y);