Uses of Interface
javax.print.PrintService
Package
Description
Provides classes and interfaces for a general printing API.
Provides the principal classes and interfaces for the Java Print
Service API.
Package
javax.print.event
contains event classes and listener
interfaces.Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides classes and interfaces that deal with editable and noneditable text
components.
-
Uses of PrintService in java.awt.print
Modifier and TypeMethodDescriptionPrinterJob.getPrintService()
Returns the service (printer) for this printer job.static PrintService[]
PrinterJob.lookupPrintServices()
A convenience method which looks up 2D print services.Modifier and TypeMethodDescriptionvoid
PrinterJob.setPrintService(PrintService service)
Associate this PrinterJob with a new PrintService. -
Uses of PrintService in javax.print
Modifier and TypeInterfaceDescriptioninterface
InterfaceMultiPrintService
is the factory for aMultiDocPrintJob
.Modifier and TypeClassDescriptionclass
This class extendsPrintService
and represents a print service that prints data in different formats to a client-provided output stream.Modifier and TypeMethodDescriptionabstract PrintService
PrintServiceLookup.getDefaultPrintService()
Not called directly by applications.DocPrintJob.getPrintService()
Determines thePrintService
object to which this print job object is bound.abstract PrintService[]
PrintServiceLookup.getPrintServices()
Not called directly by applications.abstract PrintService[]
PrintServiceLookup.getPrintServices(DocFlavor flavor, AttributeSet attributes)
Locates services that can be positively confirmed to support the combination of attributes andDocFlavors
specified.static PrintService
PrintServiceLookup.lookupDefaultPrintService()
Locates the default print service for this environment.static PrintService[]
PrintServiceLookup.lookupPrintServices(DocFlavor flavor, AttributeSet attributes)
Locates print services capable of printing the specifiedDocFlavor
.static PrintService
ServiceUI.printDialog(GraphicsConfiguration gc, int x, int y, PrintService[] services, PrintService defaultService, DocFlavor flavor, PrintRequestAttributeSet attributes)
Presents a dialog to the user for selecting a print service (printer).Modifier and TypeMethodDescriptionstatic PrintService
ServiceUI.printDialog(GraphicsConfiguration gc, int x, int y, PrintService[] services, PrintService defaultService, DocFlavor flavor, PrintRequestAttributeSet attributes)
Presents a dialog to the user for selecting a print service (printer).static boolean
PrintServiceLookup.registerService(PrintService service)
Allows an application to directly register an instance of a class which implements a print service. -
Uses of PrintService in javax.print.event
Modifier and TypeMethodDescriptionPrintServiceAttributeEvent.getPrintService()
Returns the print service.ModifierConstructorDescriptionPrintServiceAttributeEvent(PrintService source, PrintServiceAttributeSet attributes)
Constructs aPrintServiceAttributeEvent
object. -
Uses of PrintService in javax.swing
Modifier and TypeMethodDescriptionboolean
JTable.print(JTable.PrintMode printMode, MessageFormat headerFormat, MessageFormat footerFormat, boolean showPrintDialog, PrintRequestAttributeSet attr, boolean interactive, PrintService service)
Prints thisJTable
. -
Uses of PrintService in javax.swing.text
Modifier and TypeMethodDescriptionboolean
JTextComponent.print(MessageFormat headerFormat, MessageFormat footerFormat, boolean showPrintDialog, PrintService service, PrintRequestAttributeSet attributes, boolean interactive)
Prints the content of thisJTextComponent
.