Lines Matching refs:metrics
706 FontMetrics metrics = getFontMetrics();
707 int fontHeight = metrics.getHeight();
708 int fontBaseline = metrics.getAscent();
864 FontMetrics metrics = SwingUtilities2.getFontMetrics(tabPane, g, font);
867 layoutLabel(tabPlacement, metrics, tabIndex, title, icon,
877 clippedTitle = SwingUtilities2.clipStringIfNecessary(null, metrics, title, availTextWidth);
879 clippedTitle = SwingUtilities2.clipStringIfNecessary(null, metrics, title, textRect.width);
882 paintText(g, tabPlacement, font, metrics,
1016 FontMetrics metrics, int tabIndex,
1028 metrics, title, icon,
1057 Font font, FontMetrics metrics, int tabIndex,
1083 textRect.x, textRect.y + metrics.getAscent());
1089 textRect.x, textRect.y + metrics.getAscent());
1093 textRect.x - 1, textRect.y + metrics.getAscent() - 1);
1737 FontMetrics metrics = getFontMetrics();
1740 int fontHeight = metrics.getHeight();
1747 protected int calculateTabWidth(int tabPlacement, int tabIndex, FontMetrics metrics) {
1765 width += SwingUtilities2.stringWidth(tabPane, metrics, title);
1772 FontMetrics metrics = getFontMetrics();
1776 result = Math.max(calculateTabWidth(tabPlacement, i, metrics), result);
2340 FontMetrics metrics = getFontMetrics();
2350 int tabWidth = calculateTabWidth(tabPlacement, i, metrics);
2364 FontMetrics metrics = getFontMetrics();
2370 int fontHeight = metrics.getHeight();
2549 FontMetrics metrics = getFontMetrics();
2553 int fontHeight = metrics.getHeight();
2617 rect.width = calculateTabWidth(tabPlacement, i, metrics);
3147 FontMetrics metrics = getFontMetrics();
3151 int fontHeight = metrics.getHeight();
3200 rect.width = calculateTabWidth(tabPlacement, i, metrics);