/openjdk7/jdk/src/windows/classes/sun/awt/windows/ |
H A D | WEmbeddedFrame.java | 142 Graphics2D g2d = (Graphics2D)bandImage.getGraphics(); 143 g2d.translate(0, imgHgt); 144 g2d.scale(xscale, -yscale); 152 printComponents(g2d); 168 g2d.translate(0, -bandHeight);
|
/openjdk7/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/ |
H A D | GraphicsTests.java | 275 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...] |
H A D | PixelTests.java | 144 Graphics2D g2d = ctx.bimg.createGraphics(); 145 g2d.setColor(Color.white); 146 g2d.fillRect(3, 0, 1, 1); 147 g2d.dispose(); 157 Graphics2D g2d = vimg.createGraphics(); 159 g2d.drawImage(ctx.bimg, 0, 0, null); 161 g2d.dispose();
|
/openjdk7/jdk/src/macosx/classes/com/apple/laf/ |
H A D | AquaPainter.java | 88 final Graphics2D g2d = getGraphics2D(g); 89 if (g2d != null) paint(g2d, nextState); 212 final Graphics2D g2d = pg.getDelegate(); 213 if (g2d instanceof SunGraphics2D) { 214 return g2d;
|
H A D | AquaInternalFrameDockIconUI.java | 260 final Graphics2D g2d = g instanceof Graphics2D ? (Graphics2D)g : null; 261 if (g2d != null) { 263 final Object origAA = g2d.getRenderingHint(RenderingHints.KEY_ANTIALIASING); 264 g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); 273 g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, origAA);
|
H A D | AquaTabbedPaneUI.java | 312 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/src/share/classes/sun/swing/ |
H A D | SwingUtilities2.java | 498 Graphics2D g2d = getGraphics2D(g); 499 if (g2d != null) { 507 g2d.getFont().getStringBounds(text, DEFAULT_FRC).getWidth(); 508 TextLayout layout = createTextLayout(c, text, g2d.getFont(), 509 g2d.getFontRenderContext()); 513 Color col = g2d.getColor(); 515 g2d.setColor(((PrintColorUIResource)col).getPrintColor()); 518 layout.draw(g2d, x, y); 520 g2d.setColor(col); 617 Graphics2D g2d [all...] |
/openjdk7/jdk/test/java/awt/print/PrinterJob/ValidatePage/ |
H A D | ValidatePage.java | 258 Graphics2D g2d = (Graphics2D)graphics; 267 System.out.println(g2d.getTransform()); 270 g2d.translate(pageFormat.getImageableX(), pageFormat.getImageableY()); 271 g2d.drawString("ORIGIN", 20, 20); 272 g2d.drawString("X THIS WAY", 200, 50); 273 g2d.drawString("Y THIS WAY", 60 , 200); 274 g2d.drawRect(0,0,(int)pageFormat.getImageableWidth(), 276 g2d.setColor(Color.blue); 277 g2d.drawRect(1,1,(int)pageFormat.getImageableWidth()-2,
|
/openjdk7/jdk/test/sun/java2d/OpenGL/ |
H A D | GradientPaints.java | 236 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/src/share/classes/sun/awt/image/ |
H A D | BufferedImageGraphicsConfig.java | 76 Graphics2D g2d = (Graphics2D)comp.getGraphics(); 77 this.gd = g2d.getDeviceConfiguration().getDevice();
|
/openjdk7/jdk/src/share/classes/sun/font/ |
H A D | GraphicComponent.java | 235 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 D | TextLineComponent.java | 45 public void draw(Graphics2D g2d, float x, float y); argument
|
/openjdk7/jdk/test/java/awt/Window/TranslucentShapedFrameTest/ |
H A D | TSFrame.java | 66 Graphics2D g2d = (Graphics2D)g; 75 g2d.setPaint(p); 76 g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, 78 g2d.fillOval(0, 0, w, h);
|
/openjdk7/jdk/test/java/awt/font/LineBreakMeasurer/ |
H A D | AllFontsLBM.java | 68 Graphics2D g2d = bi.createGraphics();
|
/openjdk7/jdk/test/java/awt/Graphics2D/DrawString/ |
H A D | AlphaSurfaceText.java | 46 Graphics2D g2d = opaquebi1.createGraphics(); 47 g2d.drawImage(alphabi, 0, 0, null);
|
/openjdk7/jdk/src/share/classes/sun/swing/text/ |
H A D | TextComponentPrintable.java | 535 Graphics2D g2d = (Graphics2D)graphics.create(); 537 g2d.translate(pf.getImageableX(), pf.getImageableY()); 538 border.paintBorder(printShell, g2d, 0, 0, 542 g2d.translate(0, borderInsets.top); 549 g2d.clip(clip); 555 g2d.translate(xStart, - pagesMetrics.get(pageIndex).start); 556 printShell.print(g2d); 558 g2d.dispose();
|
/openjdk7/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/ |
H A D | TextTests.java | 596 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/src/share/classes/javax/swing/text/ |
H A D | GlyphPainter2.java | 118 Graphics2D g2d = (Graphics2D)g; 128 g2d.clip(s); 129 layout.draw(g2d, x, y); 133 layout.draw(g2d, x, y);
|
/openjdk7/jdk/test/java/awt/font/TextLayout/ |
H A D | TestKerning.java | 69 Graphics2D g2d = (Graphics2D)g;
|
/openjdk7/jdk/test/sun/java2d/DirectX/TransformedPaintTest/ |
H A D | TransformedPaintTest.java | 187 Graphics2D g2d = (Graphics2D) g; 188 t.render(g2d, R_WIDTH, R_HEIGHT); 190 g2d.drawImage(bi, R_WIDTH + 5, 0, null);
|
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/windows/ |
H A D | WindowsInternalFrameTitlePane.java | 534 Graphics2D g2d = (Graphics2D)g.create(); 538 double scale = g2d.getTransform().getScaleX(); 544 g2d.translate(x, y); 545 g2d.scale(drawScale, drawScale); 546 icon.paintIcon(c, g2d, 0, 0); 548 g2d.dispose();
|
/openjdk7/jdk/test/sun/java2d/SunGraphics2D/ |
H A D | SimplePrimQuality.java | 168 Graphics2D g2d = (Graphics2D)g; 169 renderTest(g2d, SIZE, SIZE);
|
/openjdk7/jdk/src/share/classes/javax/swing/ |
H A D | RepaintManager.java | 1523 final Graphics2D g2d = (Graphics2D) osg; 1524 final Color oldBg = g2d.getBackground(); 1525 g2d.setBackground(c.getBackground()); 1526 g2d.clearRect(x, y, bw, bh); 1527 g2d.setBackground(oldBg); 1533 final Graphics2D g2d = (Graphics2D) g; 1534 final Composite oldComposite = g2d.getComposite(); 1535 g2d.setComposite(AlphaComposite.Src); 1536 g2d.drawImage(image, x, y, c); 1537 g2d [all...] |
/openjdk7/jdk/test/java/awt/Graphics2D/RenderClipTest/ |
H A D | RenderClipTest.java | 101 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/classes/sun/java2d/pipe/ |
H A D | DrawImage.java | 325 final SunGraphics2D g2d = (SunGraphics2D) bimg.createGraphics(); 326 g2d.setComposite(AlphaComposite.Src); 328 g2d.setColor(bgColor); 329 g2d.fillRect(0, 0, width, height); 330 g2d.setComposite(AlphaComposite.SrcOver); 332 g2d.copyImage(img, 0, 0, sx1, sy1, width, height, null, null); 333 g2d.dispose();
|