/openjdk10/jdk/src/java.desktop/share/classes/sun/java2d/pipe/ |
H A D | OutlineTextRenderer.java | 66 public void drawChars(SunGraphics2D g2d, argument 71 drawString(g2d, s, x, y); 74 public void drawString(SunGraphics2D g2d, String str, double x, double y) { argument 79 TextLayout tl = new TextLayout(str, g2d.getFont(), 80 g2d.getFontRenderContext()); 83 int textAAHint = g2d.getFontInfo().aaHint; 87 g2d.antialiasHint != SunHints.INTVAL_ANTIALIAS_ON) { 88 prevaaHint = g2d.antialiasHint; 89 g2d.antialiasHint = SunHints.INTVAL_ANTIALIAS_ON; 90 g2d 106 drawGlyphVector(SunGraphics2D g2d, GlyphVector gv, float x, float y) argument [all...] |
H A D | TextPipe.java | 41 public void drawString(SunGraphics2D g2d, String s, argument 43 public void drawGlyphVector(SunGraphics2D g2d, GlyphVector g, argument 45 public void drawChars(SunGraphics2D g2d, argument
|
/openjdk10/jdk/test/java/awt/Graphics/ |
H A D | LCDTextAndGraphicsState.java | 39 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 D | TextAAHintsTest.java | 42 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...] |
/openjdk10/jdk/test/java/awt/Paint/ |
H A D | PgramUserBoundsTest.java | 54 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...] |
/openjdk10/jdk/test/sun/java2d/pisces/Renderer/ |
H A D | TestNPE.java | 41 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,
|
/openjdk10/jdk/test/java/awt/Graphics2D/IncorrectTextSize/ |
H A D | IncorrectTextSize.java | 50 Graphics2D g2d = bi.createGraphics(); 51 g2d.setFont(new Font(Font.DIALOG, Font.PLAIN, point)); 52 g2d.scale(scale, scale); 53 g2d.setColor(Color.WHITE); 54 g2d.fillRect(0, 0, width, height); 55 g2d.setColor(Color.green); 56 g2d.drawString(TEXT, 0, 20); 57 int length = g2d.getFontMetrics().stringWidth(TEXT); 64 g2d.drawLine(length, 0, length, height); 74 g2d [all...] |
/openjdk10/jdk/test/java/awt/font/TextLayout/ |
H A D | UnderlinePositionTest.java | 40 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 D | DecorationBoundsTest.java | 40 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...] |
/openjdk10/jdk/test/java/awt/geom/Path2D/ |
H A D | FillPPathTest.java | 60 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...] |
/openjdk10/jdk/src/java.desktop/macosx/classes/com/apple/laf/ |
H A D | AquaPopupMenuUI.java | 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) { 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...] |
/openjdk10/jdk/test/sun/java2d/ |
H A D | DrawCachedImageAndTransform.java | 49 Graphics2D g2d = vi.createGraphics(); 50 g2d.scale(2, 2); 54 g2d.drawImage(img, 10, 25, Color.blue, null); 55 g2d.dispose();
|
/openjdk10/jdk/test/sun/awt/image/ |
H A D | DrawByteBinary.java | 50 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();
|
/openjdk10/jdk/test/sun/java2d/pipe/ |
H A D | Test7027667.java | 41 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);
|
/openjdk10/jdk/test/java/awt/Graphics2D/DrawString/ |
H A D | DrawStrSuper.java | 53 Graphics2D g2d = bi.createGraphics(); 54 g2d.setColor(Color.white); 55 g2d.fillRect(0, 0, wid, hgt); 56 g2d.translate(200, 200); 67 g2d.setFont(fnt); 68 g2d.setColor(Color.yellow); 69 TextLayout tl = new TextLayout("Text", fnt,g2d.getFontRenderContext()); 70 g2d.fill(tl.getBounds()); 72 g2d.setColor(Color.black); 73 g2d [all...] |
H A D | LCDTextSrcEa.java | 61 Graphics2D g2d = (Graphics2D) target.getGraphics(); 62 g2d.setColor(Color.white); 63 g2d.fillRect(0, 0, getWidth(), getHeight()); 65 g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC, 0.01f)); 66 g2d.setRenderingHint( 69 g2d.setRenderingHint( 73 g2d.setColor(Color.black); 74 g2d.drawString("Some sample text.", 10, 20);
|
H A D | RotTransText.java | 52 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...] |
H A D | TextRenderingTest.java | 62 Graphics2D g2d = vi.createGraphics(); 63 g2d.setColor(Color.white); 64 g2d.fillRect(0, 0, width, height); 66 g2d.setPaint(new GradientPaint( 69 g2d.fillRect(0, 0, width, height); 71 String fnt = g2d.getFont().getFamily(); 72 g2d.setFont(new Font(fnt, Font.PLAIN, 100)); 73 g2d.drawString("IIIIIIIIII", 100, 100); // draw text with offset 75 g2d.dispose();
|
/openjdk10/jdk/test/java/awt/print/PrinterJob/ |
H A D | PrintRotatedText.java | 134 Graphics2D g2d = (Graphics2D)g; 135 g2d.translate(pgFmt.getImageableX(), pgFmt.getImageableY()); 136 //g2d.drawString("top left of page format",20,20 ); 140 g2d.setFont(new Font(fontname,Font.PLAIN, 18)); 160 g2d.translate(iw*0.25, ih*0.2); 161 drawTheText((Graphics2D)g2d.create(), xs*1.0,ys* 1.0); 162 g2d.translate(iw*0.25, ih*0.2); 163 drawTheText((Graphics2D)g2d.create(), xs*1.0,ys* 1.5); 164 g2d.translate(-iw*0.2, ih*0.3); 165 drawTheText((Graphics2D)g2d 170 drawTheText(Graphics2D g2d, double sx, double sy) argument [all...] |
/openjdk10/jdk/test/sun/java2d/pisces/ |
H A D | OpenJDKFillBug.java | 48 * the 'main' program with OpenJDK. The bug makes the 'g2d.fill' 90 Graphics2D g2d = bi.createGraphics(); 106 g2d.setRenderingHint(RenderingHints.KEY_ALPHA_INTERPOLATION, 108 g2d.setRenderingHint(RenderingHints.KEY_RENDERING, 110 g2d.setRenderingHint(RenderingHints.KEY_COLOR_RENDERING, 112 g2d.setRenderingHint(RenderingHints.KEY_TEXT_LCD_CONTRAST, 114 g2d.setRenderingHint(RenderingHints.KEY_DITHERING, 116 g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, 118 g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, 120 g2d [all...] |
/openjdk10/jdk/test/java/awt/image/ |
H A D | MultiResolutionImageCommonTest.java | 69 Graphics2D g2d = (Graphics2D) bufferedImage.getGraphics(); 70 setImageScalingHint(g2d, enableImageScaling); 71 g2d.drawImage(image, 0, 0, null); 78 g2d = (Graphics2D) bufferedImage.getGraphics(); 79 setImageScalingHint(g2d, enableImageScaling); 80 g2d.drawImage(image, 0, 0, 2 * IMAGE_WIDTH, 88 g2d = (Graphics2D) bufferedImage.getGraphics(); 89 setImageScalingHint(g2d, enableImageScaling); 90 g2d.scale(2, 2); 91 g2d 189 setImageScalingHint( Graphics2D g2d, boolean enableImageScaling) argument [all...] |
/openjdk10/jdk/test/sun/java2d/DirectX/AccelPaintsTest/ |
H A D | AccelPaintsTest.java | 93 private void renderWithPaint(Graphics2D g2d, Paint p) { argument 94 g2d.drawImage(bi, 130, 30, null); 96 g2d.setPaint(p); 97 g2d.fillRect(30, 30, 80, 100); 100 private void render(Graphics2D g2d) { argument 101 renderWithPaint(g2d, rgp); 102 g2d.translate(0, 100); 104 renderWithPaint(g2d, lgp); 105 g2d.translate(0, 100); 107 renderWithPaint(g2d, g [all...] |
/openjdk10/jdk/test/java/awt/FontClass/ |
H A D | LCDScale.java | 53 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);
|
/openjdk10/jdk/test/java/awt/print/PageFormat/ |
H A D | ReverseLandscapeTest.java | 83 Graphics2D g2d = (Graphics2D)g; 88 g2d.translate(pgFmt.getImageableX(), pgFmt.getImageableY()); 89 g2d.translate(iw/2, ih/2); 90 g2d.setFont(new Font("Times",Font.PLAIN, 12)); 91 g2d.setPaint(new Color(0,0,0)); 92 g2d.setStroke(new BasicStroke(1f)); 93 g2d.drawString("Print REVERSE_LANDSCAPE", 30, 40);
|
/openjdk10/jdk/test/java/awt/FontClass/SurrogateTest/ |
H A D | SuppCharTest.java | 104 Graphics2D g2d = (Graphics2D)g.create(); 105 g2d.setColor(Color.white); 106 g2d.fillRect(0,0,w,h); 107 g2d.setColor(Color.black); 109 g2d.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, 111 g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, 114 g2d.setFont(font); 115 g2d.drawString(str, 10, 50); 117 FontRenderContext frc = g2d.getFontRenderContext(); 119 g2d [all...] |