KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > javax > print > PrintService

javax.print
Interface PrintService

All Known Subinterfaces:
MultiDocPrintService
All Known Implementing Classes:
StreamPrintService
See Also:
Top Examples, Source Code

void addPrintServiceAttributeListener(PrintServiceAttributeListener listener)
See Also:
removePrintServiceAttributeListener(javax.print.event.PrintServiceAttributeListener)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


DocPrintJob createPrintJob()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


boolean equals(Object obj)
See Also:
Hashtable, Object.hashCode()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


<T extends PrintServiceAttribute> T getAttribute(Class<T> category)
See Also:
IllegalArgumentException, NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


PrintServiceAttributeSet getAttributes()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


Object getDefaultAttributeValue(Class<? extends Attribute> category)
See Also:
IllegalArgumentException, NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


String getName()
See Also:
PrinterName
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


ServiceUIFactory getServiceUIFactory()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


Class<?>[] getSupportedAttributeCategories()
See Also:
Attribute
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


Object getSupportedAttributeValues(Class<? extends Attribute> category,
                                   DocFlavor flavor,
                                   AttributeSet attributes)
See Also:
IllegalArgumentException, NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[1328]Get printer attributes
By Anonymous on 2005/03/05 20:45:05  Rate
// Get the supported media attributes 
 supportedAttributes = defaultService.getSupportedAttributeValues (  
   Media.class, 
   doc.getDocFlavor (  ) , 
   attributes ) ; 
 // Check to see if returned object is an array 
 if  ( supportedAttributes.getClass (  ) .isArray (  )  )   {  
   // Cast it to an array 
   areaItems =  ( Media [  ]  ) supportedAttributes; 
  
  
   // Loop through attributes 
   for  ( int x = 0; x  <  areaItems.length; x++ )   {  
     // Check for types of attributes 
     if  ( MediaTray.class.isInstance ( areaItems [ x ]  )  )   {  
       trayMap.put ( areaItems [ x ] .toString (  ) , areaItems [ x ]  ) ; 
      }  // end if 
     }  
   }  
 


DocFlavor[] getSupportedDocFlavors()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


AttributeSet getUnsupportedAttributes(DocFlavor flavor,
                                      AttributeSet attributes)
See Also:
IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


int hashCode()
See Also:
Hashtable, Object.equals(java.lang.Object)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


boolean isAttributeCategorySupported(Class<? extends Attribute> category)
See Also:
IllegalArgumentException, NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


boolean isAttributeValueSupported(Attribute attrval,
                                  DocFlavor flavor,
                                  AttributeSet attributes)
See Also:
IllegalArgumentException, NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


boolean isDocFlavorSupported(DocFlavor flavor)
See Also:
NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


void removePrintServiceAttributeListener(PrintServiceAttributeListener listener)
See Also:
addPrintServiceAttributeListener(javax.print.event.PrintServiceAttributeListener)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags