Lines Matching refs:g2d
312 final Graphics2D g2d = (Graphics2D) g;
316 savedAT = g2d.getTransform();
317 rotateGraphics(g2d, tabRect, textRect, iconRect, tabPlacement);
322 paintTitle(g2d, font, metrics, textRect, tabIndex, title);
330 g2d.setTransform(savedAT);
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);
349 g2d.setColor(Color.black);
351 g2d.setColor(Color.gray);
354 g2d.setColor(color);
357 g2d.setFont(font);
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) {
368 g2d.transform(AffineTransform.getRotateInstance(rotateAmount, tabRect.x, tabRect.y));
375 g2d.translate(-tabRect.height - 1, 1);
381 g2d.translate(0, -tabRect.width - 1);