Lines Matching refs:g2d
58 final Graphics2D g2d = (Graphics2D)g.create();
60 paintRoundRect(g2d, popupBounds);
61 clipEdges(g2d, popupBounds);
62 g2d.dispose();
68 protected void paintRoundRect(final Graphics2D g2d, final Rectangle popupBounds) {
70 g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
71 g2d.setComposite(AlphaComposite.Clear);
75 g2d.setStroke(new BasicStroke(3.0f));
76 g2d.drawRoundRect(-2, -2, popupBounds.width + 3, popupBounds.height + 3, 12, 12);
80 protected void clipEdges(final Graphics2D g2d, final Rectangle popupBounds) {
97 g2d.setComposite(AlphaComposite.SrcOver);
98 g2d.setColor(popupMenu.getBackground());
107 g2d.fillRect(-2, -2, 8, 8);
111 g2d.fillRect(-2, popupBounds.height - 6, 8, 8);
119 g2d.fillRect(popupBounds.width - 6, -2, 8, 8);
123 g2d.fillRect(popupBounds.width - 6, popupBounds.height - 6, 8, 8);
131 g2d.fillRect(-2, -2, popupBounds.width + 4, 8);