home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 June / CHIPHEFT062001.ISO / browser / nc32lyc / comm.z / java40.jar / sun / awt / motif / PageGraphics.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-08-15  |  730 b   |  26 lines

  1. package sun.awt.motif;
  2.  
  3. import java.awt.PrintGraphics;
  4. import java.awt.PrintJob;
  5.  
  6. class PageGraphics extends PSGraphics implements PrintGraphics {
  7.    boolean active = true;
  8.  
  9.    public PageGraphics(PSPrintStream var1, int var2) {
  10.       super(var1, var2);
  11.    }
  12.  
  13.    public void dispose() {
  14.       if (this.active) {
  15.          super.stream.endPage();
  16.          super.dispose();
  17.       }
  18.  
  19.       this.active = false;
  20.    }
  21.  
  22.    public PrintJob getPrintJob() {
  23.       return super.stream.job;
  24.    }
  25. }
  26.