1 /* 2 * @(#)PrinterGraphics.java 1.9 03/12/19 3 * 4 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 5 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. 6 */ 7 8 package java.awt.print; 9 10 /** 11 * The <code>PrinterGraphics</code> interface is implemented by 12 * {@link java.awt.Graphics} objects that are passed to 13 * {@link Printable} objects to render a page. It allows an 14 * application to find the {@link PrinterJob} object that is 15 * controlling the printing. 16 */ 17 18 public interface PrinterGraphics { 19 20 /** 21 * Returns the <code>PrinterJob</code> that is controlling the 22 * current rendering request. 23 * @return the <code>PrinterJob</code> controlling the current 24 * rendering request. 25 * @see java.awt.print.Printable 26 */ 27 PrinterJob getPrinterJob(); 28 29 } 30