1. /*
  2. * @(#)PrinterGraphics.java 1.6 00/02/02
  3. *
  4. * Copyright 1998-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package java.awt.print;
  11. /**
  12. * The <code>PrinterGraphics</code> interface is implemented by
  13. * {@link java.awt.Graphics} objects that are passed to
  14. * {@link Printable} objects to render a page. It allows an
  15. * application to find the {@link PrinterJob} object that is
  16. * controlling the printing.
  17. */
  18. public interface PrinterGraphics {
  19. /**
  20. * Returns the <code>PrinterJob</code> that is controlling the
  21. * current rendering request.
  22. * @return the <code>PrinterJob</code> controlling the current
  23. * rendering request.
  24. * @see java.awt.print.Printable
  25. */
  26. PrinterJob getPrinterJob();
  27. }