Lines Matching refs:metrics
671 final FontMetrics metrics = getFontMetrics();
672 final int fontHeight = metrics.getHeight();
673 final int fontBaseline = metrics.getAscent();
820 final FontMetrics metrics = SwingUtilities2.getFontMetrics(tabPane, g, font);
823 layoutLabel(tabPlacement, metrics, tabIndex, title, icon, tabRect, iconRect, textRect, isSelected);
830 clippedTitle = SwingUtilities2.clipStringIfNecessary(null, metrics, title, availTextWidth);
833 paintText(g, tabPlacement, font, metrics, tabIndex, clippedTitle, textRect, isSelected);
962 protected void layoutLabel(final int tabPlacement, final FontMetrics metrics, final int tabIndex, final String title, final Icon icon, final Rectangle tabRect, final Rectangle iconRect, final Rectangle textRect, final boolean isSelected) {
970 SwingUtilities.layoutCompoundLabel(tabPane, metrics, title, icon, SwingConstants.CENTER, SwingConstants.CENTER, SwingConstants.CENTER, SwingConstants.TRAILING, tabRect, iconRect, textRect, textIconGap);
988 protected void paintText(final Graphics g, final int tabPlacement, final Font font, final FontMetrics metrics, final int tabIndex, final String title, final Rectangle textRect, final boolean isSelected) {
1009 SwingUtilities2.drawStringUnderlineCharAt(tabPane, g, title, mnemIndex, textRect.x, textRect.y + metrics.getAscent());
1013 SwingUtilities2.drawStringUnderlineCharAt(tabPane, g, title, mnemIndex, textRect.x, textRect.y + metrics.getAscent());
1015 SwingUtilities2.drawStringUnderlineCharAt(tabPane, g, title, mnemIndex, textRect.x - 1, textRect.y + metrics.getAscent() - 1);
1614 final FontMetrics metrics = getFontMetrics();
1617 final int fontHeight = metrics.getHeight();
1624 protected int calculateTabWidth(final int tabPlacement, final int tabIndex, final FontMetrics metrics) {
1642 width += SwingUtilities2.stringWidth(tabPane, metrics, title);
1649 final FontMetrics metrics = getFontMetrics();
1653 result = Math.max(calculateTabWidth(tabPlacement, i, metrics), result);
2183 final FontMetrics metrics = getFontMetrics();
2193 final int tabWidth = calculateTabWidth(tabPlacement, i, metrics);
2207 final FontMetrics metrics = getFontMetrics();
2213 final int fontHeight = metrics.getHeight();
2381 final FontMetrics metrics = getFontMetrics();
2385 final int fontHeight = metrics.getHeight();
2449 rect.width = calculateTabWidth(tabPlacement, i, metrics);
2959 final FontMetrics metrics = getFontMetrics();
2963 final int fontHeight = metrics.getHeight();
3012 rect.width = calculateTabWidth(tabPlacement, i, metrics);