Lines Matching refs:metrics
297 final FontMetrics metrics = g.getFontMetrics(font);
300 layoutLabel(tabPlacement, metrics, tabIndex < 0 ? 0 : tabIndex, title, icon, fContentRect, iconRect, textRect, false); // Never give it "isSelected" - ApprMgr handles this
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) {
358 SwingUtilities2.drawString(tabPane, g2d, title, textRect.x, textRect.y + metrics.getAscent());
1125 final FontMetrics metrics = getFontMetrics();
1137 calculateVerticalTabRunRect(rect, metrics, tabPlacement, returnAt, i, x, y);
1144 calculateHorizontalTabRunRect(rect, metrics, tabPlacement, returnAt, i, x, y);
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) {
1177 rect.width = calculateTabWidth(tabPlacement, i, metrics);
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) {
1195 rect.height = calculateTabWidth(tabPlacement, i, metrics);