Lines Matching refs:rect

519      * This routine adjusts the background fill rect so it just fits inside a tab, allowing for
553 protected void fillTabWithBackground(final Graphics g, final Rectangle rect, final int tabPlacement, final boolean first, final boolean last, final Color color) {
554 final Rectangle fillRect = new Rectangle(rect);
1076 * calculated width is stored as the rect height.
1134 final Rectangle rect = rects[i];
1137 calculateVerticalTabRunRect(rect, metrics, tabPlacement, returnAt, i, x, y);
1140 if (rect.y + rect.height > returnAt) {
1144 calculateHorizontalTabRunRect(rect, metrics, tabPlacement, returnAt, i, x, y);
1147 if (rect.x + rect.width > returnAt) {
1166 private void calculateHorizontalTabRunRect(final Rectangle rect, final FontMetrics metrics, final int tabPlacement, final int returnAt, final int i, final int x, final int y) {
1169 rect.x = rects[i - 1].x + rects[i - 1].width;
1174 rect.x = x;
1177 rect.width = calculateTabWidth(tabPlacement, i, metrics);
1178 maxTabWidth = Math.max(maxTabWidth, rect.width);
1180 rect.y = y;
1181 rect.height = maxTabHeight;
1184 private void calculateVerticalTabRunRect(final Rectangle rect, final FontMetrics metrics, final int tabPlacement, final int returnAt, final int i, final int x, final int y) {
1187 rect.y = rects[i - 1].y + rects[i - 1].height;
1192 rect.y = y;
1195 rect.height = calculateTabWidth(tabPlacement, i, metrics);
1196 maxTabHeight = Math.max(maxTabHeight, rect.height);
1198 rect.x = x;
1199 rect.width = maxTabWidth;
1207 final Rectangle rect = new Rectangle();
1214 getTabBounds(i, rect);
1219 rect.x += insets.left + delta.x + getTabLabelShiftX(placement, i, isSeleceted);
1220 rect.y += insets.top + delta.y + getTabLabelShiftY(placement, i, isSeleceted) + 1;
1221 rect.width -= insets.left + insets.right;
1222 rect.height -= insets.top + insets.bottom - 1;
1224 rect.x += insets.top + delta.x + getTabLabelShiftY(placement, i, isSeleceted) + (placement == SwingConstants.LEFT ? 2 : 1);
1225 rect.y += insets.left + delta.y + getTabLabelShiftX(placement, i, isSeleceted);
1226 rect.width -= insets.top + insets.bottom - 1;
1227 rect.height -= insets.left + insets.right;
1230 c.setBounds(rect);