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

  1. package sun.awt.macos;
  2.  
  3. import java.awt.Dimension;
  4. import java.awt.Graphics;
  5. import java.awt.PrintJob;
  6. import java.io.IOException;
  7.  
  8. public class MPrintJob extends PrintJob {
  9.    int pData;
  10.    String title;
  11.    Dimension pageDimension;
  12.    int pageResolution;
  13.    boolean lastFirst = false;
  14.    int pageCount;
  15.    boolean userCancel = true;
  16.  
  17.    public MPrintJob(String var1) throws IOException {
  18.       this.title = var1;
  19.       this.pageDimension = new Dimension(612, 792);
  20.       this.pageResolution = 72;
  21.    }
  22.  
  23.    PrintJob initJob() {
  24.       this._initJob();
  25.       return !this.userCancel ? this : null;
  26.    }
  27.  
  28.    native void _initJob();
  29.  
  30.    public Graphics getGraphics() {
  31.       ++this.pageCount;
  32.       return new MPrintGraphics(this);
  33.    }
  34.  
  35.    public Dimension getPageDimension() {
  36.       return this.pageDimension;
  37.    }
  38.  
  39.    public int getPageResolution() {
  40.       return this.pageResolution;
  41.    }
  42.  
  43.    public boolean lastPageFirst() {
  44.       return this.lastFirst;
  45.    }
  46.  
  47.    public native void end();
  48. }
  49.