Class WPrintGraphics
public class WPrintGraphics extends GraphicsX implements
PrintGraphics
{
// Constructors
public WPrintGraphics(WPrintJob pjob);
// Methods
public Graphics create();
public void dispose();
public PrintJob getPrintJob();
}
This class encapsulates a print graphics context for a printable page.
FxGraphics
|
+--GraphicsX
|
+--WPrintGraphics
public WPrintGraphics(WPrintJob pjob);
Creates a print graphics object based on a WPrintJob object.
Parameter | Description |
pjob
| The WPrintJob object that the new object is based on.
|
public Graphics create();
Creates a new WPrintGraphics object based on the current one.
Return Value:
Returns a new WPrintGraphics object.
public void dispose();
Disposes the graphics object after it is no longer being referenced.
Return Value:
No return value.
public PrintJob getPrintJob();
Retrieves the PrintJob associated with the print graphics object.
Return Value:
Returns the PrintJob associated with the print graphics object.