Searched refs:g2d (Results 1 - 25 of 87) sorted by relevance

1234

/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/Graphics/
H A DLCDTextAndGraphicsState.java39 Graphics2D g2d = (Graphics2D)g.create();
40 g2d.setColor(Color.white);
41 g2d.fillRect(0,0,getSize().width, getSize().height);
49 Graphics2D g2d = (Graphics2D)g;
50 g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,
52 g2d.setColor(Color.black);
53 g2d.drawString(text, 10, 50);
54 g2d.setComposite(AlphaComposite.getInstance(
56 g2d.drawString(text, 10, 80);
60 Graphics2D g2d
[all...]
H A DTextAAHintsTest.java42 Graphics2D g2d = (Graphics2D)g.create();
43 g2d.setColor(Color.white);
44 g2d.fillRect(0,0,getSize().width, getSize().height);
53 Graphics2D g2d = (Graphics2D)g;
55 g2d.setColor(Color.white);
56 g2d.fillRect(0,0,500,100);
58 g2d.setColor(Color.black);
59 g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
62 g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,
64 g2d
[all...]
/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/test/sun/java2d/pisces/Renderer/
H A DTestNPE.java41 Graphics2D g2d = (Graphics2D) g;
42 g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
44 g2d.setClip(0, 0, 0, 0);
45 g2d.setTransform(
47 g2d.draw(new Line2D.Float(131.21428571428572f, 33.0f,
/openjdk7/jdk/test/java/awt/font/TextLayout/
H A DUnderlinePositionTest.java40 Graphics2D g2d = bi.createGraphics();
41 g2d.setColor(Color.white);
42 g2d.fillRect(0, 0, 600, 150);
50 FontRenderContext frc = g2d.getFontRenderContext();
59 g2d.translate(x, y);
60 g2d.setColor(Color.RED);
61 tl.draw(g2d, 0, 0);
68 g2d.setColor(Color.BLUE);
69 g2d.fill(bounds);
70 g2d
[all...]
H A DDecorationBoundsTest.java40 Graphics2D g2d = bi.createGraphics();
41 g2d.setColor(Color.white);
42 g2d.fillRect(0, 0, 600, 300);
51 FontRenderContext frc = g2d.getFontRenderContext();
55 g2d.translate(x, y);
56 g2d.setColor(Color.RED);
57 tl.draw(g2d, 0, 0);
58 g2d.setColor(Color.GREEN);
66 g2d.fill(bds);
72 g2d
[all...]
/openjdk7/jdk/test/java/awt/geom/Path2D/
H A DFillPPathTest.java60 Graphics2D g2d = img.createGraphics();
61 g2d.setColor(Color.BLACK);
62 g2d.fillRect(0,0,IMG_WIDTH,IMG_HEIGHT);
63 g2d.setColor(Color.WHITE);
64 g2d.fill(oddShape);
72 g2d = img.createGraphics();
73 g2d.setColor(Color.BLACK);
74 g2d.fillRect(0,0,IMG_WIDTH,IMG_HEIGHT);
75 g2d.setColor(Color.WHITE);
76 g2d
[all...]
/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...]
/openjdk7/jdk/test/sun/awt/image/
H A DDrawByteBinary.java50 Graphics2D g2d = orig.createGraphics();
51 g2d.setColor(Color.white);
52 g2d.fillRect(0, 0, w, h);
53 g2d.setColor(Color.black);
54 g2d.drawLine(x, 0, x, h);
55 g2d.dispose();
59 g2d = test.createGraphics();
60 g2d.drawImage(orig, 0, 0, null);
61 g2d.dispose();
/openjdk7/jdk/test/sun/java2d/pipe/
H A DTest7027667.java41 Graphics2D g2d = (Graphics2D) bImg.getGraphics();
42 g2d.setRenderingHint(KEY_ANTIALIASING, VALUE_ANTIALIAS_ON);
43 g2d.setClip(new Ellipse2D.Double(0, 0, 100, 100));
44 g2d.drawRect(10, 10, 100, 100);
/openjdk7/jdk/test/java/awt/Graphics2D/DrawString/
H A DDrawStrSuper.java52 Graphics2D g2d = bi.createGraphics();
53 g2d.setColor(Color.white);
54 g2d.fillRect(0, 0, wid, hgt);
55 g2d.translate(200, 200);
66 g2d.setFont(fnt);
67 g2d.setColor(Color.yellow);
68 TextLayout tl = new TextLayout("Text", fnt,g2d.getFontRenderContext());
69 g2d.fill(tl.getBounds());
71 g2d.setColor(Color.black);
72 g2d
[all...]
H A DLCDTextSrcEa.java60 Graphics2D g2d = (Graphics2D) target.getGraphics();
61 g2d.setColor(Color.white);
62 g2d.fillRect(0, 0, getWidth(), getHeight());
64 g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC, 0.01f));
65 g2d.setRenderingHint(
68 g2d.setRenderingHint(
72 g2d.setColor(Color.black);
73 g2d.drawString("Some sample text.", 10, 20);
H A DRotTransText.java52 Graphics2D g2d = bi.createGraphics();
55 g2d.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS,
65 g2d.setColor(Color.white);
66 g2d.fillRect(0, 0, wid, hgt);
73 g2d.setFont(fnt);
74 g2d.setColor(Color.blue);
75 g2d.drawString(s, x, y);
77 g2d.setColor(Color.red);
78 FontRenderContext frc = g2d.getFontRenderContext();
84 tl.draw(g2d, (floa
[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/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/test/java/awt/FontClass/
H A DLCDScale.java53 Graphics2D g2d = (Graphics2D)g;
54 g2d.setRenderingHint(
60 FontRenderContext frc = g2d.getFontRenderContext();
62 g2d.drawGlyphVector(gv, 10f, 50f);
69 g2d.transform(tx);
70 frc = g2d.getFontRenderContext();
72 g2d.drawGlyphVector(gv, 10f, 100f);
/openjdk7/jdk/test/java/awt/FontClass/SurrogateTest/
H A DSuppCharTest.java103 Graphics2D g2d = (Graphics2D)g.create();
104 g2d.setColor(Color.white);
105 g2d.fillRect(0,0,w,h);
106 g2d.setColor(Color.black);
108 g2d.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS,
110 g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,
113 g2d.setFont(font);
114 g2d.drawString(str, 10, 50);
116 FontRenderContext frc = g2d.getFontRenderContext();
118 g2d
[all...]
/openjdk7/jdk/test/sun/java2d/OpenGL/
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 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...]
/openjdk7/jdk/test/java/awt/Graphics2D/FillTexturePaint/
H A DFillTexturePaint.java62 Graphics2D g2d = vi.createGraphics();
63 g2d.setComposite(AlphaComposite.Src);
64 g2d.setPaint(shape);
65 g2d.fill(new Rectangle(0, 0, size, size));
66 g2d.dispose();
/openjdk7/jdk/test/java/awt/Graphics2D/FlipDrawImage/
H A DFlipDrawImage.java53 Graphics2D g2d = vi.createGraphics();
54 g2d.setColor(Color.red);
55 g2d.fillRect(0, 0, width, height);
56 g2d.setColor(Color.green);
57 g2d.fillRect(0, 0, width / 2, height / 2);
58 g2d.dispose();
/openjdk7/jdk/test/java/awt/image/DrawImage/
H A DIncorrectOffset.java53 Graphics2D g2d = vi.createGraphics();
54 g2d.setColor(Color.black);
55 g2d.fillRect(0, 0, width, height);
56 g2d.setColor(Color.green);
57 g2d.fillRect(width / 4, height / 4, width / 2, height / 2);
58 g2d.dispose();
/openjdk7/jdk/test/sun/java2d/
H A DXRenderBlitsTest.java55 Graphics2D g2d = img.createGraphics();
56 g2d.setColor(Color.pink);
57 g2d.fillRect(0, 0, w, h);
58 g2d.dispose();

Completed in 147 milliseconds

1234