Package | Description |
---|---|
java.awt.print |
Provides classes and interfaces for a general printing API.
|
javax.print |
Provides the principal classes and interfaces for the
JavaTM Print Service API.
|
javax.print.attribute |
Provides classes and interfaces
that describe the types of JavaTM Print
Service attributes and how they can be collected into attribute sets.
|
javax.swing |
Provides a set of "lightweight"
(all-Java language) components that,
to the maximum degree possible, work the same on all platforms.
|
javax.swing.text |
Provides classes and interfaces that deal with editable
and noneditable text components.
|
Modifier and Type | Method and Description |
---|---|
PageFormat |
PrinterJob.getPageFormat(PrintRequestAttributeSet attributes)
Calculates a
PageFormat with values consistent with those
supported by the current PrintService for this job
(ie the value returned by getPrintService() ) and media,
printable area and orientation contained in attributes . |
PageFormat |
PrinterJob.pageDialog(PrintRequestAttributeSet attributes)
A convenience method which displays a cross-platform page setup dialog.
|
void |
PrinterJob.print(PrintRequestAttributeSet attributes)
Prints a set of pages using the settings in the attribute
set.
|
boolean |
PrinterJob.printDialog(PrintRequestAttributeSet attributes)
A convenience method which displays a cross-platform print dialog
for all services which are capable of printing 2D graphics using the
Pageable interface. |
Modifier and Type | Method and Description |
---|---|
void |
DocPrintJob.print(Doc doc,
PrintRequestAttributeSet attributes)
Prints a document with the specified job attributes.
|
void |
MultiDocPrintJob.print(MultiDoc multiDoc,
PrintRequestAttributeSet attributes)
Print a MultiDoc with the specified job attributes.
|
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 Type | Class and Description |
---|---|
class |
HashPrintRequestAttributeSet
Class HashPrintRequestAttributeSet inherits its implementation from
class
HashAttributeSet and enforces the
semantic restrictions of interface
PrintRequestAttributeSet . |
Modifier and Type | Method and Description |
---|---|
static PrintRequestAttributeSet |
AttributeSetUtilities.synchronizedView(PrintRequestAttributeSet attributeSet)
Creates a synchronized view of the given print request attribute set.
|
static PrintRequestAttributeSet |
AttributeSetUtilities.unmodifiableView(PrintRequestAttributeSet attributeSet)
Creates an unmodifiable view of the given print request attribute set.
|
Modifier and Type | Method and Description |
---|---|
static PrintRequestAttributeSet |
AttributeSetUtilities.synchronizedView(PrintRequestAttributeSet attributeSet)
Creates a synchronized view of the given print request attribute set.
|
static PrintRequestAttributeSet |
AttributeSetUtilities.unmodifiableView(PrintRequestAttributeSet attributeSet)
Creates an unmodifiable view of the given print request attribute set.
|
Constructor and Description |
---|
HashPrintRequestAttributeSet(PrintRequestAttributeSet attributes)
Construct a new attribute set, initially populated with the
values from the given set where the members of the attribute set
are restricted to the
(PrintRequestAttributeSe interface. |
Modifier and Type | Method and Description |
---|---|
boolean |
JTable.print(JTable.PrintMode printMode,
MessageFormat headerFormat,
MessageFormat footerFormat,
boolean showPrintDialog,
PrintRequestAttributeSet attr,
boolean interactive)
Prints this table, as specified by the fully featured
print
method, with the default printer specified as the print service. |
boolean |
JTable.print(JTable.PrintMode printMode,
MessageFormat headerFormat,
MessageFormat footerFormat,
boolean showPrintDialog,
PrintRequestAttributeSet attr,
boolean interactive,
PrintService service)
Prints this
JTable . |
Modifier and Type | Method and Description |
---|---|
boolean |
JTextComponent.print(MessageFormat headerFormat,
MessageFormat footerFormat,
boolean showPrintDialog,
PrintService service,
PrintRequestAttributeSet attributes,
boolean interactive)
Prints the content of this
JTextComponent . |
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2019, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.