RingJavafor Ring

java.awt.print

10 classes of the module java.desktop.

Load them with:

using {
	"java.awt.print"
}

All packages

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

NameTypeAccessIn Ring
UNKNOWN_NUMBER_OF_PAGESintconstant · statico.UNKNOWN_NUMBER_OF_PAGES

Methods

MethodRing callJava overloads
appendappend([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)
getNumberOfPagesgetNumberOfPages()int getNumberOfPages()
getPageFormatgetPageFormat(pageIndex)PageFormat getPageFormat(int pageIndex)
getPrintablegetPrintable(pageIndex)Printable getPrintable(int pageIndex)
setPagesetPage(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

NameTypeAccessIn Ring
UNKNOWN_NUMBER_OF_PAGESintconstant · statico.UNKNOWN_NUMBER_OF_PAGES

Methods

MethodRing callJava overloads
getNumberOfPagesgetNumberOfPages()int getNumberOfPages()
getPageFormatgetPageFormat(pageIndex)PageFormat getPageFormat(int pageIndex)
getPrintablegetPrintable(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

NameTypeAccessIn Ring
LANDSCAPEintconstant · statico.LANDSCAPE
PORTRAITintconstant · statico.PORTRAIT
REVERSE_LANDSCAPEintconstant · statico.REVERSE_LANDSCAPE

Methods

MethodRing callJava overloads
cloneclone()Object clone()
getHeightgetHeight()double getHeight()
getImageableHeightgetImageableHeight()double getImageableHeight()
getImageableWidthgetImageableWidth()double getImageableWidth()
getImageableXgetImageableX()double getImageableX()
getImageableYgetImageableY()double getImageableY()
getMatrixgetMatrix()double[] getMatrix()
getOrientationgetOrientation()int getOrientation()
getPapergetPaper()Paper getPaper()
getWidthgetWidth()double getWidth()
setOrientationsetOrientation(orientation)void setOrientation(int orientation)
setPapersetPaper(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

MethodRing callJava overloads
cloneclone()Object clone()
getHeightgetHeight()double getHeight()
getImageableHeightgetImageableHeight()double getImageableHeight()
getImageableWidthgetImageableWidth()double getImageableWidth()
getImageableXgetImageableX()double getImageableX()
getImageableYgetImageableY()double getImageableY()
getWidthgetWidth()double getWidth()
setImageableAreasetImageableArea(x,y,width,height)void setImageableArea(double x, double y, double width, double height)
setSizesetSize(width,height)void setSize(double width, double height)

The methods and fields of Object are inherited.

Printable#

interface · java.awt.print.Printable

Fields

NameTypeAccessIn Ring
PAGE_EXISTSintconstant · statico.PAGE_EXISTS
NO_SUCH_PAGEintconstant · statico.NO_SUCH_PAGE

Methods

MethodRing callJava overloads
printprint(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

MethodRing callJava overloads
getPrinterJobgetPrinterJob()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

MethodRing callJava overloads
getIOExceptiongetIOException()IOException getIOException()

The methods and fields of PrinterException are inherited.

PrinterJob#

abstract · extends Object · java.awt.print.PrinterJob

Methods

MethodRing callJava overloads
@defaultPage@defaultPage(page)PageFormat defaultPage(PageFormat page)
@print@print(attributes)void print(PrintRequestAttributeSet attributes)
@printDialog@printDialog(attributes)boolean printDialog(PrintRequestAttributeSet attributes)
cancelcancel()void cancel()
defaultPagedefaultPage()PageFormat defaultPage()
getCopiesgetCopies()int getCopies()
getJobNamegetJobName()String getJobName()
getPageFormatgetPageFormat(attributes)PageFormat getPageFormat(PrintRequestAttributeSet attributes)
getPrinterJobgetPrinterJob()static PrinterJob getPrinterJob()
getPrintServicegetPrintService()PrintService getPrintService()
getUserNamegetUserName()String getUserName()
isCancelledisCancelled()boolean isCancelled()
lookupPrintServiceslookupPrintServices()static PrintService[] lookupPrintServices()
lookupStreamPrintServiceslookupStreamPrintServices(mimeType)static StreamPrintServiceFactory[] lookupStreamPrintServices(String mimeType)
pageDialogpageDialog(attributes)PageFormat pageDialog(PrintRequestAttributeSet attributes)
PageFormat pageDialog(PageFormat page)
printprint()void print()
printDialogprintDialog()boolean printDialog()
setCopiessetCopies(copies)void setCopies(int copies)
setJobNamesetJobName(jobName)void setJobName(String jobName)
setPageablesetPageable(document)void setPageable(Pageable document)
setPrintablesetPrintable(painter)
setPrintable([painter,format])
setPrintable([ :painter = v, :format = v ])
void setPrintable(Printable painter)
void setPrintable(Printable painter, PageFormat format)
setPrintServicesetPrintService(service)void setPrintService(PrintService service)
validatePagevalidatePage(page)PageFormat validatePage(PageFormat page)

The methods and fields of Object are inherited.

RingJava - use Java classes and methods from Ring programs.