Class Margins
- java.lang.Object
-
- org.eclipse.nebula.paperclips.core.Margins
-
public class Margins extends java.lang.Object
Instances of this class represent the page margins to follow when processing a print job.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
Margins
rotate()
Returns a Margins that is the result of rotating this Margins counter-clockwise 90 degrees.
-
-
-
Method Detail
-
rotate
public Margins 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()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-