java.awt.Toolkit#getPrintJob
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final PrintJobDelegate |
| Access | Constructor and Description |
|---|---|
| public | |
| public | PrintJob2D(Frame frame, String doctitle, JobAttributes jobAttributes, PageAttributes pageAttributes)
|
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | |
| public Graphics | getGraphics()
Implements abstract java. Gets a Graphics object that will draw to the next page. |
| public Dimension | getPageDimension()
Implements abstract java. Returns the dimensions of the page in pixels. |
| public int | getPageResolution()
Implements abstract java. Returns the resolution of the page in pixels per inch. |
| public boolean | lastPageFirst()
Implements abstract java. Returns true if the last page will be printed first. |
| public boolean |
| printJobDelegate | back to summary |
|---|---|
| private final PrintJobDelegate printJobDelegate | |
| PrintJob2D | back to summary |
|---|---|
| public PrintJob2D(Frame frame, String doctitle, final Properties props) | |
| PrintJob2D | back to summary |
|---|---|
| public PrintJob2D(Frame frame, String doctitle, JobAttributes jobAttributes, PageAttributes pageAttributes) | |
| end | back to summary |
|---|---|
| public synchronized void end() Implements abstract java. Ends the print job and does any necessary cleanup. | |
| getGraphics | back to summary |
|---|---|
| public Graphics getGraphics() Implements abstract java. Gets a Graphics object that will draw to the next page. The page is sent to the printer when the graphics object is disposed. This graphics object will also implement the PrintGraphics interface.
| |
| getPageDimension | back to summary |
|---|---|
| public Dimension getPageDimension() Implements abstract java. Returns the dimensions of the page in pixels. The resolution of the page is chosen so that it is similar to the screen resolution. Except (since 1.3) when the application specifies a resolution. In that case it is scaled accordingly. | |
| getPageResolution | back to summary |
|---|---|
| public int getPageResolution() Implements abstract java. Returns the resolution of the page in pixels per inch. Note that this doesn't have to correspond to the physical resolution of the printer. | |
| lastPageFirst | back to summary |
|---|---|
| public boolean lastPageFirst() Implements abstract java. Returns true if the last page will be printed first. | |
| printDialog | back to summary |
|---|---|
| public boolean printDialog() | |
| Modifier and Type | Field and Description |
|---|---|
| private final PrintJobDelegate |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| printJobDelegate | back to summary |
|---|---|
| private final PrintJobDelegate printJobDelegate | |
| PrintJobDisposerRecord | back to summary |
|---|---|
| pack-priv PrintJobDisposerRecord(PrintJobDelegate delegate) | |
| dispose | back to summary |
|---|---|
| public void dispose() Implements sun. | |