public abstract class PrintManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PRINT_NAME
This key indicates the name of the component being printed.
|
static java.lang.String |
PRINT_ORDER
This key indicates the order of the components being printed.
|
static java.lang.String |
PRINT_PRINTABLE
This key indicates whether the component is printable.
|
static java.lang.String |
PRINT_SIZE
This key indicates the actual size of the component being printed.
|
Constructor and Description |
---|
PrintManager() |
Modifier and Type | Method and Description |
---|---|
abstract java.awt.print.Pageable |
createPageableForObject(Context context,
java.lang.Object object)
Creates a Pageable for the given object.
|
abstract java.awt.print.PageFormat |
getPageFormat()
This method gets the PageFormat that will be used for printing
output.
|
static PrintManager |
getPrintManager()
Returns the PrintManager instance that is active in the IDE.
|
abstract void |
setPageable(java.awt.print.Pageable pageable)
setPageable sets the Pageable object to be printed in the PrintManager
|
abstract void |
setPrintable(java.awt.print.Printable printable,
java.awt.print.PageFormat pageFormat)
setPrintable sets the Printable object to be printed in the PrintManager
|
public static final java.lang.String PRINT_NAME
public static final java.lang.String PRINT_ORDER
Integer
. All visible
and printable components are ordered and shown in the Print Preview
dialog from the left to right.public static final java.lang.String PRINT_SIZE
Dimension
.public static final java.lang.String PRINT_PRINTABLE
Boolean.TRUE
or custom
component must be set as a client property of the component.public static PrintManager getPrintManager()
public abstract java.awt.print.Pageable createPageableForObject(Context context, java.lang.Object object)
context
- The IDE contextobject
- The object to create a Pageable for.public abstract void setPrintable(java.awt.print.Printable printable, java.awt.print.PageFormat pageFormat)
printable
- the object to be printedpageFormat
- the PageFormat to use when printing the objectpublic abstract void setPageable(java.awt.print.Pageable pageable)
pageable
- the object to be printedpublic abstract java.awt.print.PageFormat getPageFormat()