public abstract class PrintJob extends Object
Modifier | Constructor | Description |
---|---|---|
protected |
Constructor for subclasses to call. |
Modifier and Type | Method | Description |
---|---|---|
abstract void |
end() |
Ends the print job and does any necessary cleanup. |
void |
finalize() |
Deprecated, for removal: This API element is subject to removal in a future version. Finalization has been deprecated for removal. |
abstract Graphics |
getGraphics() |
Gets a Graphics object that will draw to the next page. |
abstract Dimension |
getPageDimension() |
Returns the dimensions of the page in pixels. |
abstract int |
getPageResolution() |
Returns the resolution of the page in pixels per inch. |
abstract boolean |
lastPageFirst() |
Returns true if the last page will be printed first. |
protected PrintJob()
public abstract Graphics getGraphics()
public abstract Dimension getPageDimension()
public abstract int getPageResolution()
public abstract boolean lastPageFirst()
true
if the last page will be printed first; otherwise false
public abstract void end()
@Deprecated(since="9", forRemoval=true) public void finalize()
Object.finalize()
for background information and details about migration options.
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/java/awt/PrintJob.html