java.lang.Object | |||
↳ | java.awt.print.PrinterJob | ||
↳ | sun.print.RasterPrinterJob | ||
↳ | sun.print.PSPrinterJob |
A class which initiates and executes a PostScript printer job.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PSPrinterJob.EPSPrinter | |||||||||||
PSPrinterJob.PluginPrinter | PluginPrinter generates EPSF wrapped with a header and trailer comment. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | FILL_EVEN_ODD | Passed to the setFillMode
method this value forces fills to be
done using the even-odd fill rule. |
|||||||||
int | FILL_WINDING | Passed to the setFillMode
method this value forces fills to be
done using the non-zero winding rule. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Presents the user a dialog for changing properties of the
print job interactively.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Invoked if the application cancelled the printjob.
| |||||||||||
Called to mark the start of a new path.
| |||||||||||
Add to the current path a bezier curve formed
by the current pen position and the method parameters
which are two control points and an ending
point.
| |||||||||||
Close the current subpath by appending a straight
line from the current point to the subpath's
starting point.
| |||||||||||
Examine the metrics captured by the
PeekGraphics instance and
if capable of directly converting this
print job to the printer's control language
or the native OS's graphics primitives, then
return a PSPathGraphics to perform
that conversion. | |||||||||||
Convert the 24 bit BGR image buffer represented by
image to PostScript. | |||||||||||
Invoked by the RasterPrintJob super class
this method is called after that last page
has been imaged.
| |||||||||||
The RastePrintJob super class calls this method
at the end of each page.
| |||||||||||
Fill the current path using the current fill mode
and color.
| |||||||||||
Returns how many times the entire book should
be printed by the PrintJob.
| |||||||||||
Returns how many times each page in the book
should be consecutively printed by PrintJob.
| |||||||||||
Return the x coordinate of the pen in the
current path.
| |||||||||||
Return the y coordinate of the pen in the
current path.
| |||||||||||
Must be obtained from the current printer.
| |||||||||||
Must be obtained from the current printer.
| |||||||||||
Must be obtained from the current printer.
| |||||||||||
Must be obtained from the current printer.
| |||||||||||
For PostScript the origin is in the upper-left of the
paper not at the imageable area corner.
| |||||||||||
For PostScript the origin is in the upper-left of the
paper not at the imageable area corner.
| |||||||||||
Return the x resolution of the coordinates
to be rendered.
| |||||||||||
Return the y resolution of the coordinates
to be rendered.
| |||||||||||
Generate PostScript to draw a line from the
current pen position to
(x, y) . | |||||||||||
Generate PostScript to move the current pen
position to
(x, y) . | |||||||||||
Prints the contents of the array of ints, 'data'
to the current page.
| |||||||||||
Intersect the gstate's current path with the
current clip and make the result the new clip.
| |||||||||||
Set the printer's current color to be that
defined by
color
| |||||||||||
Set the current path rule to be either
FILL_EVEN_ODD (using the
even-odd file rule) or FILL_WINDING
(using the non-zero winding rule.)
| |||||||||||
Set the current PostScript font.
| |||||||||||
Invoked by the RasterPrinterJob super class
this method is called to mark the start of a
document.
| |||||||||||
The RasterPrintJob super class calls this method
at the start of each page.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Passed to the setFillMode
method this value forces fills to be
done using the even-odd fill rule.
Passed to the setFillMode
method this value forces fills to be
done using the non-zero winding rule.
Presents the user a dialog for changing properties of the print job interactively.
true
if the user does not cancel the dialog;
false
otherwise.HeadlessException | if GraphicsEnvironment.isHeadless() returns true. |
---|
Invoked if the application cancelled the printjob.
Called to mark the start of a new path.
Add to the current path a bezier curve formed by the current pen position and the method parameters which are two control points and an ending point.
Close the current subpath by appending a straight line from the current point to the subpath's starting point.
Examine the metrics captured by the
PeekGraphics
instance and
if capable of directly converting this
print job to the printer's control language
or the native OS's graphics primitives, then
return a PSPathGraphics
to perform
that conversion. If there is not an object
capable of the conversion then return
null
. Returning null
causes the print job to be rasterized.
Convert the 24 bit BGR image buffer represented by
image
to PostScript. The image is drawn at
(destX, destY)
in device coordinates.
The image is scaled into a square of size
specified by destWidth
and
destHeight
. The portion of the
source image copied into that square is specified
by srcX
, srcY
,
srcWidth
, and srcHeight.
Invoked by the RasterPrintJob super class this method is called after that last page has been imaged.
PrinterException |
---|
The RastePrintJob super class calls this method at the end of each page.
PrinterException |
---|
Fill the current path using the current fill mode and color.
Returns how many times the entire book should be printed by the PrintJob. If the printer itself supports collation then this method should return 1 indicating that the entire book need only be printed once and the copies will be collated and made in the printer.
Returns how many times each page in the book should be consecutively printed by PrintJob. If the printer makes copies itself then this method should return 1.
Return the x coordinate of the pen in the current path.
Return the y coordinate of the pen in the current path.
Must be obtained from the current printer. Value is in device pixels. Not adjusted for orientation of the paper.
Must be obtained from the current printer. Value is in device pixels. Not adjusted for orientation of the paper.
Must be obtained from the current printer. Value is in device pixels. Not adjusted for orientation of the paper.
Must be obtained from the current printer. Value is in device pixels. Not adjusted for orientation of the paper.
For PostScript the origin is in the upper-left of the paper not at the imageable area corner.
For PostScript the origin is in the upper-left of the paper not at the imageable area corner.
Return the x resolution of the coordinates to be rendered.
Return the y resolution of the coordinates to be rendered.
Generate PostScript to draw a line from the
current pen position to (x, y)
.
Generate PostScript to move the current pen
position to (x, y)
.
Prints the contents of the array of ints, 'data' to the current page. The band is placed at the location (x, y) in device coordinates on the page. The width and height of the band is specified by the caller. Currently the data is 24 bits per pixel in BGR format.
PrinterException |
---|
Intersect the gstate's current path with the current clip and make the result the new clip.
Set the current path rule to be either
FILL_EVEN_ODD
(using the
even-odd file rule) or FILL_WINDING
(using the non-zero winding rule.)
Set the current PostScript font. Taken from outFont in PSPrintStream.
Invoked by the RasterPrinterJob super class this method is called to mark the start of a document.
PrinterException |
---|
The RasterPrintJob super class calls this method at the start of each page.
PrinterException |
---|