/openjdk10/jdk/src/java.desktop/share/classes/java/awt/print/ |
H A D | Printable.java | 40 * print the page's graphics. 122 * {@code graphics}. The format of the page to be drawn is 131 * @param graphics the context into which the page is drawn 140 int print(Graphics graphics, PageFormat pageFormat, int pageIndex) argument
|
/openjdk10/jdk/test/java/awt/Graphics2D/DrawString/ |
H A D | AntialiasedTextArtifact.java | 80 Graphics2D graphics = (Graphics2D) image.getGraphics(); 83 graphics.setColor(new Color(127, 127, 127, 127)); 84 graphics.fillRect(0, 0, TEST_IMAGE_WIDTH, TEST_IMAGE_HEIGHT); 87 graphics.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, 90 graphics.setFont(font); 91 graphics.setColor(new Color(255, 0, 0)); 92 graphics.drawString(TEST_STRING, 10, 75); 93 graphics.dispose();
|
/openjdk10/jdk/src/java.desktop/share/classes/javax/swing/ |
H A D | DebugGraphics.java | 33 * Graphics subclass supporting graphics debugging. Overrides most methods 51 Graphics graphics; field in class:DebugGraphics 59 /** Log graphics operations. */ 61 /** Flash graphics operations. */ 65 /** Don't debug graphics operations. */ 73 * Constructs a new debug graphics context that supports slowed 83 * Constructs a debug graphics context from an existing graphics 86 * @param graphics the Graphics context to slow down 89 public DebugGraphics(Graphics graphics, JComponen argument 100 DebugGraphics(Graphics graphics) argument [all...] |
H A D | TablePrintable.java | 199 * @param graphics the context into which the page is drawn 206 public int print(Graphics graphics, PageFormat pageFormat, int pageIndex) argument 244 graphics.setFont(headerFont); 245 hRect = graphics.getFontMetrics().getStringBounds(headerText, 246 graphics); 255 graphics.setFont(footerFont); 256 fRect = graphics.getFontMetrics().getStringBounds(footerText, 257 graphics); 312 // create a copy of the graphics so we don't affect the one given to us 313 Graphics2D g2d = (Graphics2D)graphics [all...] |
/openjdk10/jdk/test/javax/swing/JButton/6604281/ |
H A D | bug6604281.java | 52 Graphics2D graphics = (Graphics2D) image.getGraphics(); 54 graphics.setColor(Color.BLUE); 55 graphics.fillRect(0, 0, image.getWidth(), image.getHeight()); 56 graphics.setColor(Color.RED); 57 graphics.drawLine(0, 0, image.getWidth(), image.getHeight());
|
/openjdk10/jdk/src/java.desktop/share/classes/sun/print/ |
H A D | ProxyPrintGraphics.java | 34 * graphics calls are forwared to another Graphics instance 43 public ProxyPrintGraphics(Graphics graphics, PrintJob thePrintJob) { argument 44 super(graphics); 59 * @return a new graphics context that is a copy of 60 * this graphics context. 79 * @return a new graphics context.
|
/openjdk10/jdk/src/java.desktop/share/classes/sun/swing/text/ |
H A D | CompoundPrintable.java | 47 public int print(final Graphics graphics, argument 52 ret = printables.peek().print(graphics, pf, pageIndex - offset);
|
/openjdk10/jdk/test/java/awt/Frame/SetIconImagesCrashTest/ |
H A D | SetIconImagesCrashTest.java | 64 Graphics graphics = image.getGraphics(); 65 graphics.setColor(Color.RED); 66 graphics.fillRect( 68 graphics.dispose();
|
/openjdk10/jdk/test/sun/java2d/SunGraphics2D/SurfaceDestination/ |
H A D | SurfaceDestination.java | 73 private static void test(final Graphics graphics) { argument 75 if (graphics instanceof SunGraphics2D) { 76 final Object dst = ((SunGraphics2D) graphics).getDestination(); 82 graphics.dispose();
|
/openjdk10/jdk/src/java.desktop/share/classes/java/awt/font/ |
H A D | ShapeGraphicAttribute.java | 138 public void draw(Graphics2D graphics, float x, float y) { argument 140 // translating graphics to draw Shape !!! 141 graphics.translate((int)x, (int)y); 146 graphics.draw(fShape); 149 graphics.fill(fShape); 153 graphics.translate(-(int)x, -(int)y);
|
H A D | ImageGraphicAttribute.java | 162 public void draw(Graphics2D graphics, float x, float y) { argument 164 graphics.drawImage(fImage, (int) (x-fOriginX), (int) (y-fOriginY), null);
|
H A D | GraphicAttribute.java | 54 * replacement graphics. Clients wishing to embed shapes and images in 179 * @param graphics the {@link Graphics2D} into which to render the 184 public abstract void draw(Graphics2D graphics, float x, float y); argument
|
/openjdk10/jdk/test/java/awt/image/DrawImage/ |
H A D | IncorrectSourceOffset.java | 93 Graphics2D graphics = (Graphics2D) image.getGraphics(); 94 graphics.setComposite(AlphaComposite.Src); 96 graphics.setColor(new Color(i, 0, 0)); 97 graphics.fillRect(0, i, image.getWidth(null), 1); 99 graphics.dispose();
|
H A D | IncorrectAlphaSurface2SW.java | 151 Graphics2D graphics = (Graphics2D) image.getGraphics(); 152 graphics.setComposite(AlphaComposite.Src); 153 graphics.setColor(Color.GREEN); 154 graphics.fillRect(0, 0, image.getWidth(null), image.getHeight(null)); 157 graphics.setColor(new Color(23, 127, 189, i)); 158 graphics.fillRect(0, i * row, image.getWidth(null), row); 160 graphics.dispose();
|
H A D | IncorrectUnmanagedImageSourceOffset.java | 143 final Graphics2D graphics = (Graphics2D) image.getGraphics(); 144 graphics.setComposite(AlphaComposite.Src); 146 graphics.setColor(new Color(i, 0, 0)); 147 graphics.fillRect(0, i, image.getWidth(null), 1); 149 graphics.dispose();
|
H A D | IncorrectUnmanagedImageRotatedClip.java | 131 final Graphics2D graphics = (Graphics2D) image.getGraphics(); 132 graphics.setComposite(AlphaComposite.Src); 134 graphics.setColor(new Color(i, 0, 0)); 135 graphics.fillRect(0, i, image.getWidth(null), 1); 137 graphics.dispose();
|
/openjdk10/jdk/test/java/awt/datatransfer/DragImage/ |
H A D | MultiResolutionDragImageTest.java | 148 final Graphics graphics = image.getGraphics(); 149 graphics.setColor(color); 150 graphics.fillRect(0, 0, length, length); 151 graphics.dispose();
|
/openjdk10/jdk/src/java.desktop/macosx/classes/sun/lwawt/macosx/ |
H A D | CPrinterGraphics.java | 39 // based CPrinterSurfaceData. It can do "path graphics" because it 42 public CPrinterGraphics(Graphics2D graphics, PrinterJob printerJob) { argument 43 super(graphics, printerJob);
|
/openjdk10/jdk/test/java/awt/print/PrinterJob/ |
H A D | PrintCrashTest.java | 48 printerJob.setPrintable((graphics, pageFormat, pageIndex) -> { 57 graphics.drawImage(image, rect.x, rect.y, rect.width, rect.height, null);
|
H A D | LandscapeStackOverflow.java | 65 public int print( Graphics graphics, PageFormat format, int index ) { argument 66 Graphics2D g2d = (Graphics2D)graphics;
|
/openjdk10/jdk/test/javax/swing/text/html/StyleSheet/BackgroundImage/ |
H A D | BackgroundImagePosition.java | 105 final Graphics2D graphics = bi.createGraphics(); 106 jep.paint(graphics); 107 graphics.dispose();
|
/openjdk10/jdk/test/sun/java2d/ |
H A D | ClassCastExceptionForInvalidSurface.java | 105 final Graphics2D graphics = vi.createGraphics(); 106 graphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING, 108 graphics.fillPolygon(new int[] {0, 10, 10, 0},
|
/openjdk10/jdk/test/javax/print/attribute/ |
H A D | TestUnsupportedResolution.java | 87 public int print(Graphics graphics, PageFormat pageFormat, int pageIndex) throws PrinterException argument 102 graphics.drawString(s.toString(), x, y);
|
/openjdk10/jdk/src/demo/share/java2d/J2DBench/src/j2dbench/tests/text/ |
H A D | TextRenderTests.java | 87 Graphics g = tctx.graphics; 103 Graphics g = tctx.graphics; 119 Graphics g = tctx.graphics;
|
/openjdk10/jdk/src/demo/share/java2d/J2DBench/src/j2dbench/tests/ |
H A D | RenderTests.java | 293 Graphics2D g2d = (Graphics2D) rctx.graphics; 310 rctx.graphics.setColor(c); 315 Graphics2D g2d = (Graphics2D)rctx.graphics; 319 Graphics2D g2d = (Graphics2D)rctx.graphics; 322 Graphics2D g2d = (Graphics2D)rctx.graphics; 325 Graphics2D g2d = (Graphics2D)rctx.graphics; 328 Graphics2D g2d = (Graphics2D)rctx.graphics; 331 Graphics2D g2d = (Graphics2D)rctx.graphics; 334 Graphics2D g2d = (Graphics2D)rctx.graphics; 411 Graphics g = rctx.graphics; [all...] |