java.awt.print
10 classes of the module java.desktop.
Load them with:
using {
"java.awt.print"
}
Book#
class · extends Object · java.awt.print.Book
Implements: Pageable
Constructors
new Book() |
Ring: new Book(args) uses the constructor with the fewest parameters (at least one); new Book makes the object with the constructor without parameters; the others: (new Book).@New([ :param = value ]) or .@New([v1,v2]).
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
UNKNOWN_NUMBER_OF_PAGES | int | constant · static | o.UNKNOWN_NUMBER_OF_PAGES |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
append | append([painter,page])append([ :painter = v, :page = v ])append([painter,page,numPages])append([ :painter = v, :page = v, :numPages = v ]) | void append(Printable painter, PageFormat page)void append(Printable painter, PageFormat page, int numPages) |
getNumberOfPages | getNumberOfPages() | int getNumberOfPages() |
getPageFormat | getPageFormat(pageIndex) | PageFormat getPageFormat(int pageIndex) |
getPrintable | getPrintable(pageIndex) | Printable getPrintable(int pageIndex) |
setPage | setPage(pageIndex,painter,page) | void setPage(int pageIndex, Printable painter, PageFormat page) |
The methods and fields of Object are inherited.
Pageable#
interface · java.awt.print.Pageable
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
UNKNOWN_NUMBER_OF_PAGES | int | constant · static | o.UNKNOWN_NUMBER_OF_PAGES |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getNumberOfPages | getNumberOfPages() | int getNumberOfPages() |
getPageFormat | getPageFormat(pageIndex) | PageFormat getPageFormat(int pageIndex) |
getPrintable | getPrintable(pageIndex) | Printable getPrintable(int pageIndex) |
PageFormat#
class · extends Object · java.awt.print.PageFormat
Implements: Cloneable
Constructors
new PageFormat() |
Ring: new PageFormat(args) uses the constructor with the fewest parameters (at least one); new PageFormat makes the object with the constructor without parameters; the others: (new PageFormat).@New([ :param = value ]) or .@New([v1,v2]).
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
LANDSCAPE | int | constant · static | o.LANDSCAPE |
PORTRAIT | int | constant · static | o.PORTRAIT |
REVERSE_LANDSCAPE | int | constant · static | o.REVERSE_LANDSCAPE |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
clone | clone() | Object clone() |
getHeight | getHeight() | double getHeight() |
getImageableHeight | getImageableHeight() | double getImageableHeight() |
getImageableWidth | getImageableWidth() | double getImageableWidth() |
getImageableX | getImageableX() | double getImageableX() |
getImageableY | getImageableY() | double getImageableY() |
getMatrix | getMatrix() | double[] getMatrix() |
getOrientation | getOrientation() | int getOrientation() |
getPaper | getPaper() | Paper getPaper() |
getWidth | getWidth() | double getWidth() |
setOrientation | setOrientation(orientation) | void setOrientation(int orientation) |
setPaper | setPaper(paper) | void setPaper(Paper paper) |
The methods and fields of Object are inherited.
Paper#
class · extends Object · java.awt.print.Paper
Implements: Cloneable
Constructors
new Paper() |
Ring: new Paper(args) uses the constructor with the fewest parameters (at least one); new Paper makes the object with the constructor without parameters; the others: (new Paper).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
clone | clone() | Object clone() |
getHeight | getHeight() | double getHeight() |
getImageableHeight | getImageableHeight() | double getImageableHeight() |
getImageableWidth | getImageableWidth() | double getImageableWidth() |
getImageableX | getImageableX() | double getImageableX() |
getImageableY | getImageableY() | double getImageableY() |
getWidth | getWidth() | double getWidth() |
setImageableArea | setImageableArea(x,y,width,height) | void setImageableArea(double x, double y, double width, double height) |
setSize | setSize(width,height) | void setSize(double width, double height) |
The methods and fields of Object are inherited.
Printable#
interface · java.awt.print.Printable
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
PAGE_EXISTS | int | constant · static | o.PAGE_EXISTS |
NO_SUCH_PAGE | int | constant · static | o.NO_SUCH_PAGE |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
print | print(graphics,pageFormat,pageIndex) | int print(Graphics graphics, PageFormat pageFormat, int pageIndex) |
PrinterAbortException#
class · extends PrinterException · java.awt.print.PrinterAbortException
Constructors
new PrinterAbortException() |
new PrinterAbortException(String msg) |
Ring: new PrinterAbortException(args) uses the constructor with the fewest parameters (at least one); new PrinterAbortException makes the object with the constructor without parameters; the others: (new PrinterAbortException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of PrinterException are inherited.
PrinterException#
class · extends Exception · java.awt.print.PrinterException
Constructors
new PrinterException() |
new PrinterException(String msg) |
Ring: new PrinterException(args) uses the constructor with the fewest parameters (at least one); new PrinterException makes the object with the constructor without parameters; the others: (new PrinterException).@New([ :param = value ]) or .@New([v1,v2]).
The methods and fields of Exception are inherited.
PrinterGraphics#
interface · java.awt.print.PrinterGraphics
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getPrinterJob | getPrinterJob() | PrinterJob getPrinterJob() |
PrinterIOException#
class · extends PrinterException · java.awt.print.PrinterIOException
Constructors
new PrinterIOException(IOException exception) |
Ring: new PrinterIOException(args) uses the constructor with the fewest parameters (at least one); new PrinterIOException makes the object with the constructor without parameters; the others: (new PrinterIOException).@New([ :param = value ]) or .@New([v1,v2]).
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getIOException | getIOException() | IOException getIOException() |
The methods and fields of PrinterException are inherited.
PrinterJob#
abstract · extends Object · java.awt.print.PrinterJob
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@defaultPage | @defaultPage(page) | PageFormat defaultPage(PageFormat page) |
@print | @print(attributes) | void print(PrintRequestAttributeSet attributes) |
@printDialog | @printDialog(attributes) | boolean printDialog(PrintRequestAttributeSet attributes) |
cancel | cancel() | void cancel() |
defaultPage | defaultPage() | PageFormat defaultPage() |
getCopies | getCopies() | int getCopies() |
getJobName | getJobName() | String getJobName() |
getPageFormat | getPageFormat(attributes) | PageFormat getPageFormat(PrintRequestAttributeSet attributes) |
getPrinterJob | getPrinterJob() | static PrinterJob getPrinterJob() |
getPrintService | getPrintService() | PrintService getPrintService() |
getUserName | getUserName() | String getUserName() |
isCancelled | isCancelled() | boolean isCancelled() |
lookupPrintServices | lookupPrintServices() | static PrintService[] lookupPrintServices() |
lookupStreamPrintServices | lookupStreamPrintServices(mimeType) | static StreamPrintServiceFactory[] lookupStreamPrintServices(String mimeType) |
pageDialog | pageDialog(attributes) | PageFormat pageDialog(PrintRequestAttributeSet attributes)PageFormat pageDialog(PageFormat page) |
print | print() | void print() |
printDialog | printDialog() | boolean printDialog() |
setCopies | setCopies(copies) | void setCopies(int copies) |
setJobName | setJobName(jobName) | void setJobName(String jobName) |
setPageable | setPageable(document) | void setPageable(Pageable document) |
setPrintable | setPrintable(painter)setPrintable([painter,format])setPrintable([ :painter = v, :format = v ]) | void setPrintable(Printable painter)void setPrintable(Printable painter, PageFormat format) |
setPrintService | setPrintService(service) | void setPrintService(PrintService service) |
validatePage | validatePage(page) | PageFormat validatePage(PageFormat page) |
The methods and fields of Object are inherited.