Package net.sf.paperclips
Class Margins
java.lang.Object
net.sf.paperclips.Margins
Instances of this class represent the page margins to follow when processing
a print job.
- Author:
- Matthew Hall
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
top
public int topThe top margin. -
left
public int leftThe left margin. -
right
public int rightThe right margin. -
bottom
public int bottomThe bottom margin.
-
-
Constructor Details
-
Margins
public Margins()Constructs a Margins with all sides set to 1" margins. -
Margins
public Margins(int margins) Constructs a Margins with all sides set to the argument.- Parameters:
margins
- the page margins, expressed in points. 72 points = 1".
-
-
Method Details
-
rotate
Returns a Margins that is the result of rotating this Margins counter-clockwise 90 degrees. A job which is rotated 90 degrees (e.g. for landscape printing) needs to have its margins rotated to match. This is a convenience method for that purpose.- Returns:
- a Margins that is the result of rotating this Margins counter-clockwise 90 degrees.
-
hashCode
public int hashCode() -
equals
-