Lines Matching refs:g2
94 Graphics2D g2 = (Graphics2D)img1.getGraphics();
95 g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
97 g2.setColor(color);
98 g2.fillRoundRect(2,0,26,26,RADIUS,RADIUS);
99 g2.dispose();
108 g2 = (Graphics2D)img2.getGraphics();
109 g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
111 g2.setClip(0,28,IMG_SIZE,1);
112 g2.setColor(getLighter(color, 0.90f));
113 g2.drawRoundRect(2,1,25,25,RADIUS,RADIUS);
114 g2.dispose();
180 Graphics2D g2 = (Graphics2D)g;
181 g2.translate(x,y);
182 paint(g2,comp, width, height);
183 g2.translate(-x,-y);
187 Graphics2D g2 = (Graphics2D)img.getGraphics();
188 paint(g2,comp, width, height);
189 g2.dispose();