Lines Matching refs:textRect

269     protected void paintContents(final Graphics g, final int tabPlacement, final int tabIndex, final Rectangle tabRect, final Rectangle iconRect, final Rectangle textRect, final boolean isSelected) {
300 layoutLabel(tabPlacement, metrics, tabIndex < 0 ? 0 : tabIndex, title, icon, fContentRect, iconRect, textRect, false); // Never give it "isSelected" - ApprMgr handles this
304 transposeRect(textRect);
317 rotateGraphics(g2d, tabRect, textRect, iconRect, tabPlacement);
322 paintTitle(g2d, font, metrics, textRect, tabIndex, title);
336 protected void paintTitle(final Graphics2D g2d, final Font font, final FontMetrics metrics, final Rectangle textRect, final int tabIndex, final String title) {
339 v.paint(g2d, textRect);
358 SwingUtilities2.drawString(tabPane, g2d, title, textRect.x, textRect.y + metrics.getAscent());
361 protected void rotateGraphics(final Graphics2D g2d, final Rectangle tabRect, final Rectangle textRect, final Rectangle iconRect, final int tabPlacement) {
362 int yDiff = 0; // textRect.y - tabRect.y;
363 int xDiff = 0; // (tabRect.x+tabRect.width) - (textRect.x+textRect.width);
376 xDiff = textRect.x - tabRect.x;
377 yDiff = tabRect.height + tabRect.y - (textRect.y + textRect.height);
382 yDiff = textRect.y - tabRect.y;
383 xDiff = (tabRect.x + tabRect.width) - (textRect.x + textRect.width);
390 textRect.x = tabRect.x + yDiff;
391 textRect.y = tabRect.y + xDiff;
393 int tempVal = textRect.height;
394 textRect.height = textRect.width;
395 textRect.width = tempVal;
397 // g.drawLine(textRect.x, textRect.y, textRect.x+textRect.height, textRect.y+textRect.width);
398 // g.drawLine(textRect.x+textRect.height, textRect.y, textRect.x, textRect.y+textRect.width);
412 protected void paintTabNormalFromRect(final Graphics g, final int tabPlacement, final Rectangle tabRect, final int nonRectIndex, final Rectangle iconRect, final Rectangle textRect, final boolean active, final boolean frameActive, final boolean isLeftToRight) {
418 textRect.setBounds(tabRect);
420 paintContents(g, tabPlacement, nonRectIndex, tabRect, iconRect, textRect, isSelected);