< prev index next >

src/java.desktop/share/classes/sun/print/RasterPrinterJob.java

Print this page

        

*** 429,439 **** } /* * A convenience method which returns the default service ! * for 2D <code>PrinterJob</code>s. * May return null if there is no suitable default (although there * may still be 2D services available). * @return default 2D print service, or null. * @since 1.4 */ --- 429,439 ---- } /* * A convenience method which returns the default service ! * for 2D {@code PrinterJob}s. * May return null if there is no suitable default (although there * may still be 2D services available). * @return default 2D print service, or null. * @since 1.4 */
*** 493,505 **** } /** * Associate this PrinterJob with a new PrintService. * ! * Throws <code>PrinterException</code> if the specified service ! * cannot support the <code>Pageable</code> and ! * <code>Printable</code> interfaces necessary to support 2D printing. * @param service print service which supports 2D printing. * * @throws PrinterException if the specified service does not support * 2D printing or no longer available. */ --- 493,505 ---- } /** * Associate this PrinterJob with a new PrintService. * ! * Throws {@code PrinterException} if the specified service ! * cannot support the {@code Pageable} and ! * {@code Printable} interfaces necessary to support 2D printing. * @param service print service which supports 2D printing. * * @throws PrinterException if the specified service does not support * 2D printing or no longer available. */
*** 692,712 **** } /** * Display a dialog to the user allowing the modification of a * PageFormat instance. ! * The <code>page</code> argument is used to initialize controls * in the page setup dialog. * If the user cancels the dialog, then the method returns the ! * original <code>page</code> object unmodified. * If the user okays the dialog then the method returns a new * PageFormat object with the indicated changes. ! * In either case the original <code>page</code> object will * not be modified. * @param page the default PageFormat presented to the user * for modification ! * @return the original <code>page</code> object if the dialog * is cancelled, or a new PageFormat object containing * the format indicated by the user if the dialog is * acknowledged * @exception HeadlessException if GraphicsEnvironment.isHeadless() * returns true. --- 692,712 ---- } /** * Display a dialog to the user allowing the modification of a * PageFormat instance. ! * The {@code page} argument is used to initialize controls * in the page setup dialog. * If the user cancels the dialog, then the method returns the ! * original {@code page} object unmodified. * If the user okays the dialog then the method returns a new * PageFormat object with the indicated changes. ! * In either case the original {@code page} object will * not be modified. * @param page the default PageFormat presented to the user * for modification ! * @return the original {@code page} object if the dialog * is cancelled, or a new PageFormat object containing * the format indicated by the user if the dialog is * acknowledged * @exception HeadlessException if GraphicsEnvironment.isHeadless() * returns true.
*** 2329,2346 **** return mDocument; } /** * Examine the metrics captured by the ! * <code>PeekGraphics</code> instance and * if capable of directly converting this * print job to the printer's control language * or the native OS's graphics primitives, then ! * return a <code>PathGraphics</code> to perform * that conversion. If there is not an object * capable of the conversion then return ! * <code>null</code>. Returning <code>null</code> * causes the print job to be rasterized. */ protected Graphics2D createPathGraphics(PeekGraphics graphics, PrinterJob printerJob, Printable painter, --- 2329,2346 ---- return mDocument; } /** * Examine the metrics captured by the ! * {@code PeekGraphics} instance and * if capable of directly converting this * print job to the printer's control language * or the native OS's graphics primitives, then ! * return a {@code PathGraphics} to perform * that conversion. If there is not an object * capable of the conversion then return ! * {@code null}. Returning {@code null} * causes the print job to be rasterized. */ protected Graphics2D createPathGraphics(PeekGraphics graphics, PrinterJob printerJob, Printable painter,
*** 2351,2365 **** } /** * Create and return an object that will * gather and hold metrics about the print ! * job. This method is passed a <code>Graphics2D</code> * object that can be used as a proxy for the * object gathering the print job matrics. The * method is also supplied with the instance ! * controlling the print job, <code>printerJob</code>. */ protected PeekGraphics createPeekGraphics(Graphics2D graphics, PrinterJob printerJob) { return new PeekGraphics(graphics, printerJob); --- 2351,2365 ---- } /** * Create and return an object that will * gather and hold metrics about the print ! * job. This method is passed a {@code Graphics2D} * object that can be used as a proxy for the * object gathering the print job matrics. The * method is also supplied with the instance ! * controlling the print job, {@code printerJob}. */ protected PeekGraphics createPeekGraphics(Graphics2D graphics, PrinterJob printerJob) { return new PeekGraphics(graphics, printerJob);
< prev index next >