|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.paperclips.Margins
public class Margins
Instances of this class represent the page margins to follow when processing a print job.
Field Summary | |
---|---|
int |
bottom
The bottom margin. |
int |
left
The left margin. |
int |
right
The right margin. |
int |
top
The top margin. |
Constructor Summary | |
---|---|
Margins()
Constructs a Margins with all sides set to 1" margins. |
|
Margins(int margins)
Constructs a Margins with all sides set to the argument. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int top
public int left
public int right
public int bottom
Constructor Detail |
---|
public Margins()
public Margins(int margins)
margins
- the page margins, expressed in points. 72 points = 1".Method Detail |
---|
public Margins rotate()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |