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