Searched refs:graphics (Results 1 - 25 of 40) sorted by relevance

12

/openjdk7/jdk/src/share/classes/java/awt/print/
H A DPrintable.java39 * print the page's graphics.
122 * <code>graphics</code>. 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
/openjdk7/jdk/src/share/classes/javax/swing/
H A DDebugGraphics.java33 * Graphics subclass supporting graphics debugging. Overrides most methods
50 Graphics graphics; field in class:DebugGraphics
58 /** Log graphics operations. */
60 /** Flash graphics operations. */
64 /** Don't debug graphics operations. */
72 * Constructs a new debug graphics context that supports slowed
82 * Constructs a debug graphics context from an existing graphics
85 * @param graphics the Graphics context to slow down
88 public DebugGraphics(Graphics graphics, JComponen argument
99 DebugGraphics(Graphics graphics) argument
[all...]
H A DTablePrintable.java199 * @param graphics the context into which the page is drawn
206 public int print(Graphics graphics, PageFormat pageFormat, int pageIndex) argument
246 graphics.setFont(headerFont);
247 hRect = graphics.getFontMetrics().getStringBounds(headerText,
248 graphics);
257 graphics.setFont(footerFont);
258 fRect = graphics.getFontMetrics().getStringBounds(footerText,
259 graphics);
312 // create a copy of the graphics so we don't affect the one given to us
313 Graphics2D g2d = (Graphics2D)graphics
[all...]
/openjdk7/jdk/test/javax/swing/JButton/6604281/
H A Dbug6604281.java52 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());
/openjdk7/jdk/src/share/classes/sun/swing/text/
H A DCompoundPrintable.java47 public int print(final Graphics graphics, argument
52 ret = printables.peek().print(graphics, pf, pageIndex - offset);
H A DTextComponentPrintable.java455 public int print(final Graphics graphics, argument
459 if (graphics instanceof Graphics2D) {
460 frc.set(((Graphics2D)graphics).getFontRenderContext());
469 return printOnEDT(graphics, pf, pageIndex);
492 ret = printOnEDT(graphics, pf, pageIndex);
504 private int printOnEDT(final Graphics graphics, argument
535 Graphics2D g2d = (Graphics2D)graphics.create();
/openjdk7/jdk/src/share/classes/sun/print/
H A DProxyPrintGraphics.java34 * 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.
H A DPeekGraphics.java96 * graphics, no Java2D graphics.
102 * calls to 'graphics'. 'printerJob' is stored away
106 public PeekGraphics(Graphics2D graphics, PrinterJob printerJob) { argument
108 mGraphics = graphics;
124 public void setDelegate(Graphics2D graphics) { argument
125 mGraphics = graphics;
133 * The caller promises that only AWT graphics will be drawn.
135 * assumptions about the types of graphics to be drawn without
167 * @return a new graphics contex
[all...]
H A DProxyGraphics2D.java76 * The new ProxyGraphics2D will forward all graphics
77 * calls to 'graphics'.
79 public ProxyGraphics2D(Graphics2D graphics, PrinterJob printerJob) { argument
80 mGraphics = graphics;
96 public void setDelegate(Graphics2D graphics) { argument
97 mGraphics = graphics;
116 * @return a new graphics context that is a copy of
117 * this graphics context.
126 * Translates the origin of the graphics context to the point
128 * Modifies this graphics contex
[all...]
H A DProxyGraphics.java57 public ProxyGraphics(Graphics graphics) { argument
58 g = graphics;
68 * @return a new graphics context that is a copy of
69 * this graphics context.
83 * <code>Graphics</code> object. The new graphics context is
88 * The new graphics context is translated by (<i>x</i>,&nbsp;<i>y</i>).
90 * new graphics context is the same as (<i>x</i>,&nbsp;<i>y</i>) in
91 * the original graphics context.
93 * The new graphics context has an additional clipping rectangle, in
95 * from the original graphics contex
[all...]
/openjdk7/jdk/src/share/classes/java/awt/font/
H A DShapeGraphicAttribute.java138 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 DImageGraphicAttribute.java162 public void draw(Graphics2D graphics, float x, float y) { argument
164 graphics.drawImage(fImage, (int) (x-fOriginX), (int) (y-fOriginY), null);
H A DGraphicAttribute.java54 * 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
/openjdk7/jdk/src/macosx/classes/sun/lwawt/macosx/
H A DCPrinterGraphics.java39 // based CPrinterSurfaceData. It can do "path graphics" because it
42 public CPrinterGraphics(Graphics2D graphics, PrinterJob printerJob) { argument
43 super(graphics, printerJob);
H A DCPrinterJob.java575 private void printToPathGraphics( final PeekGraphics graphics, // Always an actual PeekGraphics argument
651 private Rectangle2D printAndGetPageFormatArea(final Printable printable, final Graphics graphics, final PageFormat pageFormat, final int pageIndex) { argument
656 int pageResult = printable.print(graphics, pageFormat, pageIndex);
/openjdk7/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/text/
H A DTextRenderTests.java87 Graphics g = tctx.graphics;
103 Graphics g = tctx.graphics;
119 Graphics g = tctx.graphics;
H A DTextTests.java356 // graphics transform (full set)
435 txoptgraphicsroot = new Group(txoptroot, "graphics", "Graphics");
559 Graphics graphics; field in class:TextTests.TextContext
565 // graphics
566 graphics = env.getGraphics();
594 // graphics
596 Graphics2D g2d = (Graphics2D)graphics;
616 graphics.dispose();
617 graphics = null;
627 g2d = (Graphics2D)graphics;
[all...]
/openjdk7/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/tests/
H A DRenderTests.java293 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...]
H A DMiscTests.java89 Graphics g = gctx.graphics;
H A DGraphicsTests.java96 graphicsroot = new Group("graphics", "Graphics Benchmarks");
231 Graphics graphics; field in class:GraphicsTests.Context
268 ctx.graphics = env.getGraphics();
275 Graphics2D g2d = (Graphics2D) ctx.graphics;
331 Graphics graphics = ((Context) ctx).graphics;
332 graphics.dispose();
333 ((Context) ctx).graphics = null;
H A DImageTests.java517 Graphics g = ictx.graphics;
568 Graphics g = ictx.graphics;
628 Graphics g = ictx.graphics;
687 Graphics2D g = (Graphics2D) ictx.graphics;
856 Graphics2D g2 = (Graphics2D)ictx.graphics;
/openjdk7/jdk/test/javax/print/
H A DDialogMargins.java93 public int print(Graphics graphics, PageFormat pageFormat, int pageIndex) { argument
99 Graphics2D g2d = (Graphics2D)graphics;
/openjdk7/jdk/src/share/classes/sun/swing/
H A DPrintingStatus.java269 public int print(final Graphics graphics, argument
274 printDelegatee.print(graphics, pageFormat, pageIndex);
/openjdk7/hotspot/src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/widgets/
H A DFigureWidget.java186 Graphics graphics = this.getGraphics();
187 if (graphics.getFontMetrics().stringWidth(cur) > figure.getWidth()) {
/openjdk7/jdk/test/java/awt/print/PrinterJob/ValidatePage/
H A DValidatePage.java252 public int print(Graphics graphics, PageFormat pageFormat, int pageIndex) { argument
258 Graphics2D g2d = (Graphics2D)graphics;

Completed in 499 milliseconds

12