Searched defs:g2d (Results 1 - 21 of 21) sorted by relevance

/openjdk7/jdk/src/macosx/classes/com/apple/laf/
H A DAquaPopupMenuUI.java58 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) { argument
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, fina argument
[all...]
H A DAquaTabbedPaneContrastUI.java50 protected void paintTitle(final Graphics2D g2d, final Font font, final FontMetrics metrics, final Rectangle textRect, final int tabIndex, final String title) { argument
53 v.paint(g2d, textRect);
61 g2d.setColor(getNonSelectedTabTitleColor());
67 AquaUtils.paintDropShadowText(g2d, tabPane, font, metrics, textRect.x, textRect.y, 0, 1, textColor, shadowColor, title);
71 g2d.setColor(color);
73 g2d.setFont(font);
74 SwingUtilities2.drawString(tabPane, g2d, title, textRect.x, textRect.y + metrics.getAscent());
H A DAquaTabbedPaneUI.java312 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) { argument
339 v.paint(g2d, textRect);
349 g2d.setColor(Color.black);
351 g2d.setColor(Color.gray);
354 g2d
361 rotateGraphics(final Graphics2D g2d, final Rectangle tabRect, final Rectangle textRect, final Rectangle iconRect, final int tabPlacement) argument
[all...]
/openjdk7/jdk/test/sun/java2d/DirectX/AccelPaintsTest/
H A DAccelPaintsTest.java92 private void renderWithPaint(Graphics2D g2d, Paint p) { argument
93 g2d.drawImage(bi, 130, 30, null);
95 g2d.setPaint(p);
96 g2d.fillRect(30, 30, 80, 100);
99 private void render(Graphics2D g2d) { argument
100 renderWithPaint(g2d, rgp);
101 g2d.translate(0, 100);
103 renderWithPaint(g2d, lgp);
104 g2d.translate(0, 100);
106 renderWithPaint(g2d, g
[all...]
/openjdk7/jdk/src/share/classes/sun/java2d/pipe/
H A DOutlineTextRenderer.java67 public void drawChars(SunGraphics2D g2d, argument
72 drawString(g2d, s, x, y);
75 public void drawString(SunGraphics2D g2d, String str, double x, double y) { argument
80 TextLayout tl = new TextLayout(str, g2d.getFont(),
81 g2d.getFontRenderContext());
84 int textAAHint = g2d.getFontInfo().aaHint;
88 g2d.antialiasHint != SunHints.INTVAL_ANTIALIAS_ON) {
89 prevaaHint = g2d.antialiasHint;
90 g2d.antialiasHint = SunHints.INTVAL_ANTIALIAS_ON;
91 g2d
107 drawGlyphVector(SunGraphics2D g2d, GlyphVector gv, float x, float y) argument
[all...]
H A DTextPipe.java42 public void drawString(SunGraphics2D g2d, String s, argument
44 public void drawGlyphVector(SunGraphics2D g2d, GlyphVector g, argument
46 public void drawChars(SunGraphics2D g2d, argument
/openjdk7/jdk/test/java/awt/Paint/
H A DPgramUserBoundsTest.java54 Graphics2D g2d = bimg.createGraphics();
55 g2d.setPaint(new BoundsCheckerPaint(MinX, MinY, MaxX, MaxY));
56 testAll(g2d);
57 g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
59 testAll(g2d);
62 static void testAll(Graphics2D g2d) { argument
63 g2d.setTransform(identity);
64 g2d.translate(100, 100);
65 testPrimitives(g2d);
67 g2d
76 testPrimitives(Graphics2D g2d) argument
81 testLine(Graphics2D g2d) argument
88 testRect(Graphics2D g2d) argument
93 testLine(Graphics2D g2d, int x1, int y1, int x2, int y2) argument
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/
H A DTablePrintable.java313 Graphics2D g2d = (Graphics2D)graphics.create();
316 g2d.translate(pageFormat.getImageableX(), pageFormat.getImageableY());
323 oldTrans = g2d.getTransform();
325 g2d.translate(0, imgHeight - footerTextSpace);
327 printText(g2d, footerText, fRect, footerFont, imgWidth);
329 g2d.setTransform(oldTrans);
335 printText(g2d, headerText, hRect, headerFont, imgWidth);
337 g2d.translate(0, headerTextSpace + H_F_SPACE);
345 g2d.clip(tempRect);
350 g2d
411 printText(Graphics2D g2d, String text, Rectangle2D rect, Font font, int imgWidth) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/font/
H A DUnderline.java53 * Draws the underline into g2d. The thickness should be obtained
58 abstract void drawUnderline(Graphics2D g2d, argument
167 void drawUnderline(Graphics2D g2d, argument
174 Stroke saveStroke = g2d.getStroke();
175 g2d.setStroke(getStroke(thickness));
176 g2d.draw(new Line2D.Float(x1, y + shift, x2, y + shift));
177 g2d.setStroke(saveStroke);
210 void drawUnderline(Graphics2D g2d, argument
216 Stroke saveStroke = g2d.getStroke();
217 g2d
[all...]
H A DDecoration.java69 void handleDraw(Graphics2D g2d, float x, float y); argument
118 Graphics2D g2d,
122 label.handleDraw(g2d, x, y);
254 Graphics2D g2d,
258 label.handleDraw(g2d, x, y);
269 Stroke savedStroke = g2d.getStroke();
270 g2d.setStroke(new BasicStroke(cm.strikethroughThickness,
274 g2d.draw(new Line2D.Float(x1, strikeY, x2, strikeY));
275 g2d.setStroke(savedStroke);
282 stdUnderline.drawUnderline(g2d, ulThicknes
117 drawTextAndDecorations(Label label, Graphics2D g2d, float x, float y) argument
253 drawTextAndEmbellishments(Label label, Graphics2D g2d, float x, float y) argument
290 drawTextAndDecorations(Label label, Graphics2D g2d, float x, float y) argument
[all...]
H A DGraphicComponent.java235 public void handleDraw(Graphics2D g2d, float x, float y) { argument
239 graphic.draw(g2d, x, y);
244 public void draw(Graphics2D g2d, float x, float y) { argument
246 decorator.drawTextAndDecorations(this, g2d, x, y);
H A DTextLineComponent.java45 public void draw(Graphics2D g2d, float x, float y); argument
/openjdk7/jdk/test/sun/java2d/OpenGL/
H A DCustomCompositeTest.java169 Graphics2D g2d = theImage.createGraphics();
170 g2d.setColor(Color.red);
171 g2d.fillRect(0, 0, 256, 256);
173 g2d.setPaint(new GradientPaint(0, 0, Color.red, 256, 256, Color.blue));
174 g2d.fillRect(0, 100, 256, 256);
175 g2d.dispose();
187 Graphics2D g2d = (Graphics2D) g;
189 renderTest(g2d, getWidth(), getHeight());
198 public static void renderTest(Graphics2D g2d, int w, int h) { argument
199 g2d
[all...]
H A DDrawBufImgOp.java195 Graphics2D g2d = vimg.createGraphics();
196 renderTest(g2d);
197 g2d.dispose();
228 private void renderTest(Graphics2D g2d) { argument
229 g2d.setColor(Color.white);
230 g2d.fillRect(0, 0, TESTW, TESTH);
247 g2d.drawImage(srcImg, rescale1band, x, y);
254 g2d.drawImage(srcImg, rescale3band, x, y);
258 g2d.drawImage(srcImg, rescale4band, x, y);
266 g2d
[all...]
H A DGradientPaints.java236 private void renderTest(Graphics2D g2d, Paint p, Object aahint) { argument
237 g2d.setColor(Color.white);
238 g2d.fillRect(0, 0, TESTW, TESTH);
239 g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, aahint);
240 g2d.setPaint(p);
241 g2d.fillOval(0, 0, TESTW, TESTH);
/openjdk7/jdk/test/java/awt/print/PrinterJob/ImagePrinting/
H A DClippedImages.java159 Graphics2D g2d = img.createGraphics();
160 g2d.setColor(Color.red);
161 g2d.fillRect(0 ,0, sw, sh);
162 g2d.setColor(Color.black);
165 g2d.setFont(font);
166 FontMetrics fm = g2d.getFontMetrics();
171 g2d.drawString(s, x, y);
245 Graphics2D g2d = (Graphics2D)g;
246 g2d.translate(pgFmt.getImageableX(), pgFmt.getImageableY());
248 paint(g2d);
275 saveTx(Graphics2D g2d) argument
279 restoreTx(Graphics2D g2d) argument
[all...]
/openjdk7/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/
H A DGraphicsTests.java275 Graphics2D g2d = (Graphics2D) ctx.graphics;
280 g2d.setComposite(ac);
282 g2d.setXORMode(Color.white);
291 g2d.clip(p);
295 tx.init(g2d, ctx, envdim);
298 g2d.setRenderingHint(RenderingHints.KEY_RENDERING,
339 public abstract void init(Graphics2D g2d, Context ctx, Dimension dim); argument
401 public void init(Graphics2D g2d, Context ctx, Dimension dim) { argument
418 public void init(Graphics2D g2d, Context ctx, Dimension dim) { argument
423 g2d
441 init(Graphics2D g2d, Context ctx, Dimension dim) argument
465 init(Graphics2D g2d, Context ctx, Dimension dim) argument
498 init(Graphics2D g2d, Context ctx, Dimension dim) argument
522 init(Graphics2D g2d, Context ctx, Dimension dim) argument
[all...]
/openjdk7/jdk/test/sun/java2d/SunGraphics2D/
H A DPolyVertTest.java172 public static void render(Graphics2D g2d) { argument
173 g2d.setColor(Color.white);
174 g2d.fillRect(0, 0, TESTWIDTH, TESTHEIGHT);
175 g2d.setColor(Color.black);
178 g2d.fillRect(2, 2, 2, 2);
179 g2d.fillRect(15, 5, 1, 1);
183 g2d.draw(new Rectangle2D.Double(5, 5, 0, 0));
187 g2d.drawLine(10, 10, 10, 10);
188 g2d.draw(new Line2D.Double(20, 10, 20, 10));
190 g2d
[all...]
/openjdk7/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/
H A DTextTests.java596 Graphics2D g2d = (Graphics2D)graphics;
597 g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,
599 g2d.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS,
603 g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
607 g2d.transform((AffineTransform)env.getModifier(gtxList));
622 Graphics2D g2d; field in class:TextTests.G2DContext
627 g2d = (Graphics2D)graphics;
628 frc = g2d.getFontRenderContext();
/openjdk7/jdk/test/java/awt/Graphics2D/RenderClipTest/
H A DRenderClipTest.java101 public abstract void fill(Graphics2D g2d); argument
103 public abstract void draw(Graphics2D g2d); argument
109 public void fill(Graphics2D g2d) { argument
110 g2d.fill(getShape());
113 public void draw(Graphics2D g2d) { argument
114 g2d.draw(getShape());
1283 public void fill(Graphics2D g2d) { argument
1284 g2d.fillRect(rect.x, rect.y, rect.width, rect.height);
1287 public void draw(Graphics2D g2d) { argument
1288 g2d
1347 fill(Graphics2D g2d) argument
1350 draw(Graphics2D g2d) argument
[all...]
/openjdk7/jdk/src/share/demo/jfc/Font2DTest/
H A DFontPanel.java765 private void calcFontMetrics( Graphics2D g2d, int w, int h ) { argument
767 Graphics2D g2 = (Graphics2D)g2d.create();
1379 Graphics2D g2d =
1382 g2d.getRenderingHint(RenderingHints.KEY_TEXT_LCD_CONTRAST);

Completed in 240 milliseconds