1 7 8 package javax.print; 9 10 import javax.print.attribute.AttributeSet ; 11 import javax.print.attribute.PrintJobAttributeSet ; 12 import javax.print.attribute.PrintRequestAttributeSet ; 13 import javax.print.event.PrintJobAttributeListener ; 14 import javax.print.event.PrintJobListener ; 15 import javax.print.PrintException ; 16 17 24 25 public interface DocPrintJob { 26 27 34 public PrintService getPrintService(); 35 36 50 public PrintJobAttributeSet getAttributes(); 51 52 62 public void addPrintJobListener(PrintJobListener listener); 63 64 75 public void removePrintJobListener(PrintJobListener listener); 76 77 104 public void addPrintJobAttributeListener( 105 PrintJobAttributeListener listener, 106 PrintJobAttributeSet attributes); 107 108 121 public void removePrintJobAttributeListener( 122 PrintJobAttributeListener listener); 123 124 156 public void print(Doc doc, PrintRequestAttributeSet attributes) 157 throws PrintException ; 158 159 } 160 | Popular Tags |