Class PrintJob
java.lang.Object
net.sf.paperclips.PrintJob
Instances of this class represent a prepared print job.
- Author:
- Matthew Hall
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the document to be printed.Returns the page margins, expressed in points.getName()Returns the name of the print job.intReturns the page orientation.inthashCode()setMargins(int margins) Sets the top, left, right, and bottom margins to the argument.setMargins(Margins margins) Sets the page margins.setOrientation(int orientation) Sets the page orientation.
-
Constructor Details
-
PrintJob
-
-
Method Details
-
hashCode
-
equals
-
getName
-
getDocument
-
getOrientation
public int getOrientation()Returns the page orientation.- Returns:
- the page orientation.
-
setOrientation
Sets the page orientation.- Parameters:
orientation- the page orientation. Must be one ofPaperClips.ORIENTATION_DEFAULT,PaperClips.ORIENTATION_PORTRAITorPaperClips.ORIENTATION_LANDSCAPE. Values other than these choices will be automatically changed toPaperClips.ORIENTATION_DEFAULT.- Returns:
- this PrintJob (for chaining method calls)
-
getMargins
Returns the page margins, expressed in points. 72 points = 1".- Returns:
- the page margins, expressed in points. 72 points = 1".
-
setMargins
-
setMargins
Sets the top, left, right, and bottom margins to the argument.- Parameters:
margins- the margins, in points. 72 points = 1 inch.- Returns:
- this PrintJob (for chaining method calls)
-