Uses of Interface
javax.print.attribute.Attribute
Package
Description
Provides the principal classes and interfaces for the Java Print
Service API.
Provides classes and interfaces that describe the types of Java Print
Service attributes and how they can be collected into attribute sets.
Package
javax.print.attribute.standard
contains classes for specific
printing attributes.-
Uses of Attribute in javax.print
Modifier and TypeMethodDescriptionAttributeException.getUnsupportedValues()
Returns the array of printing attributes for which the Print Service instance supports the attribute but does not support that particular value of the attribute, ornull
if there are no such attribute values.Modifier and TypeMethodDescriptionboolean
PrintService.isAttributeValueSupported
(Attribute attrval, DocFlavor flavor, AttributeSet attributes) Determines whether a client can specify the given printing attribute value when setting up a job for this Print Service.Modifier and TypeMethodDescriptionPrintService.getDefaultAttributeValue
(Class<? extends Attribute> category) Determines this print service's default printing attribute value in the given category.PrintService.getSupportedAttributeValues
(Class<? extends Attribute> category, DocFlavor flavor, AttributeSet attributes) Determines the printing attribute values a client can specify in the given category when setting up a job for this print service.boolean
PrintService.isAttributeCategorySupported
(Class<? extends Attribute> category) Determines whether a client can specify the given printing attribute category when setting up a job for this print service. -
Uses of Attribute in javax.print.attribute
Modifier and TypeInterfaceDescriptioninterface
InterfaceDocAttribute
is a tagging interface which a printing attribute class implements to indicate the attribute denotes a setting for a doc.interface
PrintJobAttribute
is a tagging interface which a printing attribute class implements to indicate the attribute describes the status of a Print Job or some other characteristic of a Print Job.interface
InterfacePrintRequestAttribute
is a tagging interface which a printing attribute class implements to indicate the attribute denotes a requested setting for a print job.interface
InterfacePrintServiceAttribute
is a tagging interface which a printing attribute class implements to indicate the attribute describes the status of a Print Service or some other characteristic of a Print Service.interface
InterfaceSupportedValuesAttribute
is a tagging interface which a printing attribute class implements to indicate the attribute describes the supported values for another attribute.Modifier and TypeMethodDescriptionReturns the attribute value which this attribute set contains in the given attribute category.Returns the attribute value which this attribute set contains in the given attribute category.AttributeSet.toArray()
Returns an array of the attributes contained in this set.HashAttributeSet.toArray()
Returns an array of the attributes contained in this set.static Attribute
AttributeSetUtilities.verifyAttributeValue
(Object object, Class<?> interfaceName) Verify that the given object is an instance of the given interface, which is assumed to be interfaceAttribute
or a subinterface thereof.Modifier and TypeMethodDescriptionAttribute.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value when it is added to an attribute set.Modifier and TypeMethodDescriptionboolean
Adds the specified attribute to this attribute set if it is not already present, first removing any existing value in the same attribute category as the specified attribute value.boolean
Adds the specified attribute value to this attribute set if it is not already present, first removing any existing value in the same attribute category as the specified attribute value (optional operation).boolean
Adds the specified attribute to this attribute set if it is not already present, first removing any existing in the same attribute category as the specified attribute value.boolean
Adds the specified attribute value to this attribute set if it is not already present, first removing any existing value in the same attribute category as the specified attribute value (optional operation).boolean
Adds the specified attribute value to this attribute set if it is not already present, first removing any existing value in the same attribute category as the specified attribute value (optional operation).boolean
Adds the specified attribute value to this attribute set if it is not already present, first removing any existing value in the same attribute category as the specified attribute value (optional operation).boolean
AttributeSet.containsValue
(Attribute attribute) Returnstrue
if this attribute set contains the given attribute value.boolean
HashAttributeSet.containsValue
(Attribute attribute) Returnstrue
if this attribute set contains the given attribute.boolean
Removes the specified attribute from this attribute set if present.boolean
Removes the specified attribute from this attribute set if present.static void
AttributeSetUtilities.verifyCategoryForValue
(Class<?> category, Attribute attribute) Verify that the given attribute category object is equal to the category of the given attribute value object.ModifierConstructorDescriptionHashAttributeSet
(Attribute attribute) Construct a new attribute set, initially populated with the given attribute.HashAttributeSet
(Attribute[] attributes) Construct a new attribute set, initially populated with the values from the given array.protected
HashAttributeSet
(Attribute[] attributes, Class<?> interfaceName) Construct a new attribute set, where the members of the attribute set are restricted to the given interface.protected
HashAttributeSet
(Attribute attribute, Class<?> interfaceName) Construct a new attribute set, initially populated with the given attribute, where the members of the attribute set are restricted to the given interface. -
Uses of Attribute in javax.print.attribute.standard
Modifier and TypeClassDescriptionfinal class
ClassChromaticity
is a printing attribute class, an enumeration, that specifies monochrome or color printing.final class
ClassColorSupported
is a printing attribute class, an enumeration, that identifies whether the device is capable of any type of color printing at all, including highlight color as well as full process color.class
ClassCompression
is a printing attribute class, an enumeration, that specifies how print data is compressed.final class
ClassCopies
is an integer valued printing attribute class that specifies the number of copies to be printed.final class
ClassCopiesSupported
is a printing attribute class, a set of integers, that gives the supported values for aCopies
attribute.final class
ClassDateTimeAtCompleted
is a printing attribute class, a date-time attribute, that indicates the date and time at which the Print Job completed (or was canceled or aborted).final class
ClassDateTimeAtCreation
is a printing attribute class, a date-time attribute, that indicates the date and time at which the Print Job was created.final class
ClassDateTimeAtProcessing
is a printing attribute class, a date-time attribute, that indicates the date and time at which the Print Job first began processing.final class
ClassDestination
is a printing attribute class, aURI
, that is used to indicate an alternate destination for the spooled printer formatted data.final class
An attribute class used to support requesting a print or page setup dialog be kept displayed on top of all windows or some specific window.final class
ClassDialogTypeSelection
is a printing attribute class, an enumeration, that indicates the user dialog type to be used for specifying printing options.final class
ClassDocumentName
is a printing attribute class, a text attribute, that specifies the name of a document.final class
ClassFidelity
is a printing attribute class, an enumeration, that indicates whether total fidelity to client supplied print request attributes is required.class
ClassFinishings
is a printing attribute class, an enumeration, that identifies whether the printer applies a finishing operation of some kind of binding to each copy of each printed document in the job.final class
ClassJobHoldUntil
is a printing attribute class, a date-time attribute, that specifies the exact date and time at which the job must become a candidate for printing.final class
ClassJobImpressions
is an integer valued printing attribute class that specifies the total size in number of impressions of the document(s) being submitted.final class
ClassJobImpressionsCompleted
is an integer valued printing attribute class that specifies the number of impressions completed for the job so far.final class
ClassJobImpressionsSupported
is a printing attribute class, a set of integers, that gives the supported values for aJobImpressions
attribute.final class
ClassJobKOctets
is an integer valued printing attribute class that specifies the total size of the document(s) in K octets, i.e., in units of 1024 octets requested to be processed in the job.final class
ClassJobKOctetsProcessed
is an integer valued printing attribute class that specifies the total number of print data octets processed so far in K octets, i.e., in units of 1024 octets.final class
ClassJobKOctetsSupported
is a printing attribute class, a set of integers, that gives the supported values for aJobKOctets
attribute.class
ClassJobMediaSheets
is an integer valued printing attribute class that specifies the total number of media sheets to be produced for this job.final class
ClassJobMediaSheetsCompleted
is an integer valued printing attribute class that specifies the number of media sheets which have completed marking and stacking for the entire job so far, whether those sheets have been processed on one side or on both.final class
ClassJobMediaSheetsSupported
is a printing attribute class, a set of integers, that gives the supported values for aJobMediaSheets
attribute.final class
ClassJobMessageFromOperator
is a printing attribute class, a text attribute, that provides a message from an operator, system administrator, or "intelligent" process to indicate to the end user the reasons for modification or other management action taken on a job.final class
ClassJobName
is a printing attribute class, a text attribute, that specifies the name of a print job.final class
ClassJobOriginatingUserName
is a printing attribute class, a text attribute, that contains the name of the end user that submitted the print job.final class
ClassJobPriority
is an integer valued printing attribute class that specifies a print job's priority.final class
ClassJobPrioritySupported
is an integer valued printing attribute class that specifies whether a Print Service instance supports theJobPriority
attribute and the number of different job priority levels supported.class
ClassJobSheets
is a printing attribute class, an enumeration, that determines which job start and end sheets, if any, must be printed with a job.class
JobState
is a printing attribute class, an enumeration, that identifies the current state of a print job.class
ClassJobStateReason
is a printing attribute class, an enumeration, that provides additional information about the job's current state, i.e., information that augments the value of the job'sJobState
attribute.final class
ClassJobStateReasons
is a printing attribute class, a set of enumeration values, that provides additional information about the job's current state, i.e., information that augments the value of the job'sJobState
attribute.class
ClassMedia
is a printing attribute class that specifies the medium on which to print.class
ClassMediaName
is a subclass ofMedia
, a printing attribute class (an enumeration) that specifies the media for a print job as a name.final class
ClassMediaPrintableArea
is a printing attribute used to distinguish the printable and non-printable areas of media.class
ClassMediaSize
is a two-dimensional size valued printing attribute class that indicates the dimensions of the medium in a portrait orientation, with theX
dimension running along the bottom edge and theY
dimension running along the left edge.class
ClassMediaSizeName
is a subclass ofMedia
.class
ClassMediaTray
is a subclass ofMedia
.class
ClassMultipleDocumentHandling
is a printing attribute class, an enumeration, that controls finishing operations and the placement of one or more print-stream pages into impressions and onto media sheets.final class
ClassNumberOfDocuments
is an integer valued printing attribute that indicates the number of individual docs the printer has accepted for this job, regardless of whether the docs' print data has reached the printer or not.final class
ClassNumberOfInterveningJobs
is an integer valued printing attribute that indicates the number of jobs that are ahead of this job in the relative chronological order of expected time to complete (i.e., the current scheduled order).final class
ClassNumberUp
is an integer valued printing attribute class that specifies the number of print-stream pages to impose upon a single side of an instance of a selected medium.final class
ClassNumberUpSupported
is a printing attribute class, a set of integers, that gives the supported values for aNumberUp
attribute.final class
ClassOrientationRequested
is a printing attribute class, an enumeration, that indicates the desired orientation for printed print-stream pages; it does not describe the orientation of the client-supplied print-stream pages.final class
ClassOutputDeviceAssigned
is a printing attribute class, a text attribute, that identifies the output device to which the service has assigned this job.final class
ClassPageRanges
is a printing attribute class, a set of integers, that identifies the range(s) of print-stream pages that the Printer object uses for each copy of each document which are to be printed.final class
ClassPagesPerMinute
is an integer valued printing attribute that indicates the nominal number of pages per minute to the nearest whole number which may be generated by this printer (e.g., simplex, black-and-white).final class
ClassPagesPerMinuteColor
is an integer valued printing attribute that indicates the nominal number of pages per minute to the nearest whole number which may be generated by this printer when printing color (e.g., simplex, color).class
ClassPDLOverrideSupported
is a printing attribute class, an enumeration, that expresses the printer's ability to attempt to override processing instructions embedded in documents' print data with processing instructions specified as attributes outside the print data.final class
ClassPresentationDirection
is a printing attribute class, an enumeration, that is used in conjunction with theNumberUp
attribute to indicate the layout of multiple print-stream pages to impose upon a single side of an instance of a selected medium.final class
ClassPrinterInfo
is a printing attribute class, a text attribute, that provides descriptive information about a printer.final class
ClassPrinterIsAcceptingJobs
is a printing attribute class, an enumeration, that indicates whether the printer is currently able to accept jobs.final class
ClassPrinterLocation
is a printing attribute class, a text attribute, that identifies the location of the device.final class
ClassPrinterMakeAndModel
is a printing attribute class, a text attribute, that the make and model of the printer.final class
ClassPrinterMessageFromOperator
is a printing attribute class, a text attribute, that provides a message from an operator, system administrator, or "intelligent" process to indicate to the end user information about or status of the printer, such as why it is unavailable or when it is expected to be available.final class
ClassPrinterMoreInfo
is a printing attribute class, aURI
, that is used to obtain more information about this specific printer.final class
ClassPrinterMoreInfoManufacturer
is a printing attribute class, aURI
, that is used to obtain more information about this type of device.final class
ClassPrinterName
is a printing attribute class, a text attribute, that specifies the name of a printer.final class
ClassPrinterResolution
is a printing attribute class that specifies an exact resolution supported by a printer or to be used for a print job.final class
ClassPrinterState
is a printing attribute class, an enumeration, that identifies the current state of a printer.class
ClassPrinterStateReason
is a printing attribute class, an enumeration, that provides additional information about the printer's current state, i.e., information that augments the value of the printer'sPrinterState
attribute.final class
ClassPrinterStateReasons
is a printing attribute class, a set of enumeration values, that provides additional information about the printer's current state, i.e., information that augments the value of the printer'sPrinterState
attribute.final class
ClassPrinterURI
is a printing attribute class, aURI
, that specifies the globally unique name of a printer.class
ClassPrintQuality
is a printing attribute class, an enumeration, that specifies the print quality that the printer uses for the job.final class
ClassQueuedJobCount
is an integer valued printing attribute that indicates the number of jobs in the printer whoseJobState
is eitherPENDING
,PENDING_HELD
,PROCESSING
, orPROCESSING_STOPPED
.class
ClassReferenceUriSchemesSupported
is a printing attribute class an enumeration, that indicates a "URI scheme," such as "http:" or "ftp:", that a printer can use to retrieve print data stored at aURI
location.final class
ClassRequestingUserName
is a printing attribute class, a text attribute, that specifies the name of the end user that submitted the print job.final class
ClassSeverity
is a printing attribute class, an enumeration, that denotes the severity of aPrinterStateReason
attribute.final class
ClassSheetCollate
is a printing attribute class, an enumeration, that specifies whether or not the media sheets of each copy of each printed document in a job are to be in sequence, when multiple copies of the document are specified by theCopies
attribute.final class
ClassSides
is a printing attribute class, an enumeration, that specifies how print-stream pages are to be imposed upon the sides of an instance of a selected medium, i.e., an impression.Modifier and TypeMethodDescriptionChromaticity.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.ColorSupported.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.Compression.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.Copies.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.CopiesSupported.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.DateTimeAtCompleted.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.DateTimeAtCreation.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.DateTimeAtProcessing.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.Destination.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.DialogOwner.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.DialogTypeSelection.getCategory()
Gets the printing attribute class which is to be used as the "category" for this printing attribute value.DocumentName.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.Fidelity.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.Finishings.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.JobHoldUntil.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.JobImpressions.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.JobImpressionsCompleted.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.JobImpressionsSupported.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.JobKOctets.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.JobKOctetsProcessed.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.JobKOctetsSupported.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.JobMediaSheets.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.JobMediaSheetsCompleted.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.JobMediaSheetsSupported.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.JobMessageFromOperator.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.JobName.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.JobOriginatingUserName.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.JobPriority.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.JobPrioritySupported.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.JobSheets.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.JobState.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.JobStateReason.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.JobStateReasons.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.Media.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.MediaPrintableArea.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.MediaSize.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.MultipleDocumentHandling.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.NumberOfDocuments.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.NumberOfInterveningJobs.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.NumberUp.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.NumberUpSupported.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.OrientationRequested.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.OutputDeviceAssigned.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.PageRanges.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.PagesPerMinute.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.PagesPerMinuteColor.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.PDLOverrideSupported.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.PresentationDirection.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.PrinterInfo.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.PrinterIsAcceptingJobs.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.PrinterLocation.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.PrinterMakeAndModel.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.PrinterMessageFromOperator.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.PrinterMoreInfo.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.PrinterMoreInfoManufacturer.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.PrinterName.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.PrinterResolution.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.PrinterState.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.PrinterStateReason.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.PrinterStateReasons.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.PrinterURI.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.PrintQuality.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.QueuedJobCount.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.ReferenceUriSchemesSupported.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.RequestingUserName.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.Severity.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.SheetCollate.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.Sides.getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.