home *** CD-ROM | disk | FTP | other *** search
/ PC User 1998 October / Image.iso / BROWSER / CLASSES.ZIP / sun / AWT / WIN32 / Win32PrintJob.class (.txt) < prev   
Encoding:
Java Class File  |  1997-04-14  |  1.0 KB  |  44 lines

  1. package sun.awt.win32;
  2.  
  3. import java.awt.Dimension;
  4. import java.awt.Graphics;
  5. import java.io.IOException;
  6.  
  7. public class Win32PrintJob {
  8.    private Win32Graphics w32g;
  9.    String title;
  10.    Dimension pageDimension;
  11.    int pageResolution;
  12.    boolean lastFirst = false;
  13.    int pageCount;
  14.    int printerDC;
  15.  
  16.    public Win32PrintJob(String var1) throws IOException {
  17.       this.title = var1;
  18.       this.pageDimension = new Dimension(816, 1056);
  19.       this.pageResolution = 96;
  20.    }
  21.  
  22.    public Graphics getGraphics() {
  23.       ++this.pageCount;
  24.       this.w32g = new Win32Graphics(this);
  25.       return this.w32g;
  26.    }
  27.  
  28.    public Dimension getPageDimension() {
  29.       return this.pageDimension;
  30.    }
  31.  
  32.    public int getPageResolution() {
  33.       return this.pageResolution;
  34.    }
  35.  
  36.    public boolean lastPageFirst() {
  37.       return this.lastFirst;
  38.    }
  39.  
  40.    public void end() {
  41.       this.w32g.close(this);
  42.    }
  43. }
  44.