home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 25 / CDROM25.iso / Share / prog / VJ11 / VJTRIAL.EXE / IE30Java.exe / classd.exe / sun / awt / win32 / Win32PrintJob.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-01-27  |  1.1 KB  |  45 lines

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