home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 1999 April / DPPCPRO0499.ISO / April / Notes / 50b2wic.exe / DATA1.CAB / NotesProgramFilesJavaSupport / rt.jar / sun / awt / windows / WPrintJob.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-04-23  |  1.1 KB  |  46 lines

  1. package sun.awt.windows;
  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 WPrintJob extends PrintJob {
  9.    String title;
  10.    Dimension pageDimension;
  11.    int pageResolution;
  12.    boolean lastFirst = false;
  13.    int pageCount;
  14.    int pGraphics;
  15.  
  16.    public WPrintJob(String var1) throws IOException {
  17.       this.title = var1;
  18.       this.pageDimension = new Dimension(612, 792);
  19.       this.pageResolution = 72;
  20.    }
  21.  
  22.    PrintJob initJob() {
  23.       new WPrintGraphics(this);
  24.       return this.pGraphics != 0 ? this : null;
  25.    }
  26.  
  27.    public Graphics getGraphics() {
  28.       ++this.pageCount;
  29.       return new WPrintGraphics(this);
  30.    }
  31.  
  32.    public Dimension getPageDimension() {
  33.       return this.pageDimension;
  34.    }
  35.  
  36.    public int getPageResolution() {
  37.       return this.pageResolution;
  38.    }
  39.  
  40.    public boolean lastPageFirst() {
  41.       return this.lastFirst;
  42.    }
  43.  
  44.    public native void end();
  45. }
  46.