1 7 8 package javax.print; 9 10 import java.util.Locale ; 11 12 import javax.print.attribute.Attribute ; 13 import javax.print.attribute.AttributeSet ; 14 import javax.print.attribute.PrintServiceAttribute ; 15 import javax.print.attribute.PrintServiceAttributeSet ; 16 import javax.print.event.PrintServiceAttributeListener ; 17 18 19 42 public interface PrintService { 43 44 54 public String getName(); 55 56 61 public DocPrintJob createPrintJob(); 62 63 69 public void addPrintServiceAttributeListener( 70 PrintServiceAttributeListener listener); 71 72 79 public void removePrintServiceAttributeListener( 80 PrintServiceAttributeListener listener); 81 82 97 public PrintServiceAttributeSet getAttributes(); 98 99 113 public <T extends PrintServiceAttribute > 114 T getAttribute(Class <T> category); 115 116 131 public DocFlavor [] getSupportedDocFlavors(); 132 133 149 public boolean isDocFlavorSupported(DocFlavor flavor); 150 151 152 176 public Class <?>[] getSupportedAttributeCategories(); 177 178 214 public boolean 215 isAttributeCategorySupported(Class <? extends Attribute > category); 216 217 258 public Object 259 getDefaultAttributeValue(Class <? extends Attribute > category); 260 261 334 public Object 335 getSupportedAttributeValues(Class <? extends Attribute > category, 336 DocFlavor flavor, 337 AttributeSet attributes); 338 339 380 public boolean isAttributeValueSupported(Attribute attrval, 381 DocFlavor flavor, 382 AttributeSet attributes); 383 384 385 426 public AttributeSet getUnsupportedAttributes(DocFlavor flavor, 427 AttributeSet attributes); 428 429 440 public ServiceUIFactory getServiceUIFactory(); 441 442 460 public boolean equals(Object obj); 461 462 467 public int hashCode(); 468 469 } 470 | Popular Tags |