home *** CD-ROM | disk | FTP | other *** search
/ Java 1.2 How-To / JavaHowTo.iso / 3rdParty / jbuilder / unsupported / JDK1.2beta3 / SOURCE / SRC.ZIP / java / awt / print / Printable.java < prev    next >
Encoding:
Java Source  |  1998-03-20  |  982 b   |  36 lines

  1. /*
  2.  * @(#)Printable.java    1.4 98/03/18
  3.  *
  4.  * Copyright 1997, 1998 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  *
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. package java.awt.print;
  16.  
  17. import java.awt.Graphics;
  18.  
  19. /**
  20.  * When building a Pageable, pairs of PageFormat
  21.  * instances and instances that implement
  22.  * this Printable interface are used to
  23.  * describe each page. The instance implementing
  24.  * Printable will be called to print the page's
  25.  * graphics.
  26.  */
  27. public interface Printable {
  28.     /**
  29.      *    A Book instance will call the Printable interface
  30.      *    requesting that a page be printed into 'graphics'.
  31.      *
  32.      */
  33.     void print(Graphics graphics);
  34.  
  35. }
  36.