home *** CD-ROM | disk | FTP | other *** search
- package sun.awt.windows;
-
- import java.awt.Dimension;
- import java.awt.Graphics;
- import java.awt.PrintJob;
- import java.io.IOException;
-
- public class WPrintJob extends PrintJob {
- String title;
- Dimension pageDimension;
- int pageResolution;
- boolean lastFirst = false;
- int pageCount;
- int pGraphics;
-
- public WPrintJob(String var1) throws IOException {
- this.title = var1;
- this.pageDimension = new Dimension(612, 792);
- this.pageResolution = 72;
- }
-
- PrintJob initJob() {
- new WPrintGraphics(this);
- return this.pGraphics != 0 ? this : null;
- }
-
- public Graphics getGraphics() {
- ++this.pageCount;
- return new WPrintGraphics(this);
- }
-
- public Dimension getPageDimension() {
- return this.pageDimension;
- }
-
- public int getPageResolution() {
- return this.pageResolution;
- }
-
- public boolean lastPageFirst() {
- return this.lastFirst;
- }
-
- public native void end();
- }
-