Home >> All >> javax >> [ print Javadoc ] |
| javax.print.attribute.* (95) | | javax.print.attribute.standard.* (69) | | javax.print.event.* (8) |
javax.print: Javadoc index of package javax.print.
Package Samples:
javax.print.attribute.standard
javax.print.attribute
javax.print.event
Classes:
DocFlavor: DocFlavor provides a description of the format in which the print data will be supplied in a print job to the print service. A doc flavor consists of two parts: The MIME type (Multipurpose Internet Mail Extensions types as described in RFC 2045/2046) specifying the media format of the print data. The representation class name which is the fully qualified name of the class providing the print data to the print job. For example if the print data is supplied as a byte array the representation class name will be "[B" or for an input stream "java.io.InputStream" . The DocFlavor class is therefore used ...
SetOfIntegerSyntax: SetOfIntegerSyntax is the abstract base class of all attribute classes which provide a set of non-negative integers as value (e.g. the page ranges to print) represented as single values or ranges of values. A SetOfIntegerSyntax instance consists of an integer array of ranges. Ranges may have the same lower and upper bound representing a single integer value. Ranges with a lower bound greater than the upper bound are null ranges and discarded. Ranges may overlap in their values. In no case negative integers are allowed. There are several constructors available: SetOfIntegerSyntax(int member) Constructor ...
ResolutionSyntax: ResolutionSyntax is the abstract base class of all attribute classes which provide a resolution as value (e.g. printer resolution). A ResolutionSyntax instance consists of two integer values describing the resolution in feed and cross feed direction. The units of the given values is determined by two defined constants: DPCM - dots per centimeter DPI - dots per inch A resolutions attribute is constructed by two values for the resolution and one of the two constants defining the actual units of the given values. There are different methods provided to return the resolution values in either of the ...
Size2DSyntax: Size2DSyntax is the abstract base class of all attribute classes which provide a two dimensional size as value (e.g. the size of a media like Letter or A4). A Size2DSyntax instance consists of two integer values describing the size in the x and y dimension. The units of the given values is determined by two defined constants: INCH - defines an inch MM - defines a millimeter A size 2D attribute is constructed by two values for the size of the x and y dimension and the actual units of the given values as defined by the constants. There are different methods provided to return the size values for ...
EnumSyntax: EnumSyntax is the abstract base class of all enumeration classes in the Java Print Service API. Every enumeration class which extends from EnumSyntax provides several enumeration objects as singletons of its class. Notes for implementing subclasses: The values of all enumeration singelton instances have to be in a sequence which may start at any value. See: getOffset() 55 Subclasses have to override getEnumValueTable() 55 and should override getStringTable() 55 for correct serialization. Example: public class PrinterState extends EnumSyntax { public static final PrinterState IDLE = new PrinterState(1); ...
AttributeSet: AttributeSet is the top-level interface for sets of printing attributes in the Java Print Service API. There are no duplicate values allowed in an attribute set and there is at most one attribute object contained per category type. Based on the java.util.Map interface the values of attribute sets are objects of type Attribute and the entries are the categories as java.lang.Class instances. The following specialized types of AttributeSet are available: DocAttributeSet PrintRequestAttributeSet PrintJobAttributeSet PrintServiceAttributeSet Attribute sets may be unmodifiable depending on the context ...
Doc: Doc specifies the interface for print services how to obtain the print data and document specific attributes for printing. The print data is always passed to a DocPrintJob object as a Doc object which allows the print services to: Determine the actual document format of the supplied print data. This is supplied as a DocFlavor object with the MIME type and the representation class of the print data. Obtain the print data either in its representation class or depending on the document format through convenience methods as a java.io.Reader or an java.io.InputStream . Obtain the document's attribute ...
Finishings: The Finishings attribute specifies the finishing operations that the Printer applies to every copy of each printed document in the Job. Standard enum values are: NONE , STAPLE , COVER , BIND , SADDLE_STITCH , EDGE_STITCH . The following values are more specific: STAPLE_TOP_LEFT , STAPLE_BOTTOM_LEFT , STAPLE_TOP_RIGHT , STAPLE_BOTTOM_RIGHT , EDGE_STITCH_LEFT , EDGE_STITCH_TOP , EDGE_STITCH_RIGHT , EDGE_STITCH_BOTTOM , STAPLE_DUAL_LEFT , STAPLE_DUAL_TOP , STAPLE_DUAL_RIGHT , STAPLE_DUAL_BOTTOM . Note: The effect of this attribute on jobs with multiple documents is controlled by the job attribute ...
Fidelity: The Fidelity attribute specifies how a print job is handled if the supplied attributes are not fully supported. There may be conflicts between the client requested attributes and the attributes supported by the printer object. Such situations are controlled through the client by providing this attribute to indicate the wanted conflict handling mechanism: FIDELITY_TRUE 55 : Reject the job since the job can not be processed exactly as specified by the attributes of the client. FIDELITY_FALSE 55 : The Printer may make any changes necessary to proceed with processing the Job as good as possible. IPP ...
MultiDoc: MultiDoc defines the interface for objects providing multiple documents for use in a print job. Implementations of this interface are used to pass multiple documents, to be printed as one print job, to the MultiDocPrintJob instance. There exists no implementation of this interface in the Java Print Service API. Implementors may assume the following usage in print jobs and the needed behaviour for implementations: The print job fetches the single documents via iteration by consecutive calls of the getDoc() 55 method to obtain the current document follwing calls of the next() 55 method to get the ...
MediaPrintableArea: The MediaPrintableArea attribute specifies the area of a media sheet which is available for printing. Due to hardware limitation its not possible with most printers to use the whole area of a media sheet for printing. This attribute defines the area for printing through the values of the upper left corner position (x,y) on the sheet and the available width and height of the area. The units of the values are determined by two defined constants: INCH - defines an inch MM - defines a millimeter Internal storage: The values of x, y, width and height are stored internally in micrometers. The values ...
AttributeSetUtilities: AttributeSetUtilities provides static methods for working with AttributeSet s. For every type of an attribute set available in the Java Print Service API are methods provided to get an unmodifiable view of an attribute set. This unmodifiable view provides a read-only version of the attribute set which throws UnmodifiableSetException s if state changing methods are invoked. Methods for getting a synchronized view of an attribute set are also available. This view provides synchronized (thread safe) access to the underlying wrapped attribute set. Three static methods for the implementation of own ...
JobImpressions: The JobImpressions printing attribute specifies the total size in number of impressions of the documents of a a print job. An impression is specified by the IPP specification as the image (possibly many print-stream pages in different configurations) imposed onto a single media sheet. This attribute must not include a multiplication factor from the number of copies which maybe specified in a Copies attribute. This attribute belongs to a group of job size attributes which are describing the size of a job to be printed. The values supplied by these attributes are intended to be used for routing and ...
Media: The Media printing attribute specifies which type of media should be used for printing. The media to be used can be specified in three ways represented by the media subclasses MediaTray , MediaName and MediaSizeName : Selection by paper source - selection of printer tray to be used. Selection by name - e.g. A4 paper. Selection by standard sizes - e.g. ISO A5, JIS B4. Each of the sublcasses represents the IPP attribute media and provides predefined values to be used. IPP Compatibility: Media is an IPP 1.1 attribute.
JobKOctets: The JobKOctets printing attribute specifies the total size of all the documents of a print job in K octets. The supplied value has to be rounded up, so that a range between 1 and 1024 octects is specified as 1 and a range between 1025 and 2048 octects as 2, etc. This attribute must not include a multiplication factor from the number of copies which maybe specified in a Copies attribute. This attribute belongs to a group of job size attributes which are describing the size of a job to be printed. The values supplied by these attributes are intended to be used for routing and scheduling of jobs on ...
Chromaticity: The Chromaticity printing attribute specifies if print data should be printed in monochrome or color. The attribute interacts with the document to be printed. If the document to be printed is a monochrome document it will be printed monochrome regardless of the value of this attribute category. However if it is a color document supplying the attribute value MONOCHROME will prepare the document to be printed in monochrome instead of color. This printing attribute has nothing to do with the capabilities of the printer device. To check if a specific printer service supports printing in color you have ...
JobMediaSheets: The JobMediaSheets printing attribute specifies the total number of media sheets needed by a job. In contrary to the other job size attributes this attribute must include the multiplication factor from the number of copies if a Copies attribute was specified for the job. This attribute belongs to a group of job size attributes which are describing the size of a job to be printed. The values supplied by these attributes are intended to be used for routing and scheduling of jobs on the print service. A client may specify these attributes. If a clients supplies these attributes a print service may ...
PrintServiceLookup: PrintServiceLookup implementations provide a way to lookup print services based on different constraints. Implementations are located and loaded automatically through the SPI JAR file specification. Therefore implementation classes must provide a default constructor for instantiation. Furthermore, applications are able to register further instances directly at runtime. If an SecurityManager is installed implementors should call checkPrintJobAccess() to disable access for untrusted code. This check is to be made in every lookup service implementation for flexibility. Print services registered by ...
CancelablePrintJob: CancelablePrintJob represents a print job which can be canceled. It is implemented by DocPrintJob s which support to cancel a print job during processing. Clients need to explicitly test if a given DocPrintJob object from a print service implementes this interface and therefore supports cancelling. Implementor of java print services should implement this interface if cancelling is supported by the underlying print system. If implemented the corresponding print job event PrintJobEvent.JOB_CANCELED > PrintJobEvent.JOB_CANCELED 55 should be delivered to registered clients. Implementations have to ...
ColorSupported: The ColorSupported printing attribute specifies if a printing device is capable of color printing. This attributes just tells if a printer device supports color printing but does not specify how a specific print job is printed. Therefore the attribute Chromaticity exists. IPP Compatibility: ColorSupported is an IPP 1.1 attribute. The IPP specification treats ColorSupported as a boolean type which is not available in the Java Print Service API. The IPP boolean value true corresponds to SUPPORTED and "false" to NOT_SUPPORTED .
PrintRequestAttributeSet: PrintRequestAttributeSet specifies an attribute set which only allows printing attributes of type PrintRequestAttribute . The methods add(Attribute) 55 and addAll(AttributeSet) 55 are respecified in this interface to indicate that only PrintRequestAttribute instances are allowed in this set.
PrintServiceAttributeSet: PrintServiceAttributeSet specifies an attribute set which only allows printing attributes of type PrintServiceAttribute . The methods add(Attribute) 55 and addAll(AttributeSet) 55 are respecified in this interface to indicate that only PrintServiceAttribute instances are allowed in this set.
PrintException: PrintException is used to report exceptions during the usage of a print service implementation. This base class only provides the possibility to report a message as exception. A concrete print service implementation may provide specialised subclasses implementing one or more of the following exception interfaces: AttributeException FlavorException URIException
ServiceUIFactory: ServiceUIFactory enables print services to provide additional user interface dialogs. A print service may provide a ServiceUIFactory implementation if its getServiceUIFactory() method is called. If a factory object is returned it can be queried for provided user interface dialogs. Different roles are defined to denote dialogs providing informations about the print service, dialogs for administration of a print service and for end-user browsing dialogs. The factory can support providing these UI roles in different dialog types (AWT, Swing, JComponent, Panel). The support and use of Swing interfaces ...
PrintJobAttributeSet: PrintJobAttributeSet specifies an attribute set which only allows printing attributes of type PrintJobAttribute . The methods add(Attribute) 55 and addAll(AttributeSet) 55 are respecified in this interface to indicate that only PrintJobAttribute instances are allowed in this set.
Home | Contact Us | Privacy Policy | Terms of Service |