public class Margins
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
bottom
The bottom margin.
|
int |
left
The left margin.
|
int |
right
The right margin.
|
int |
top
The top margin.
|
| Constructor and Description |
|---|
Margins()
Constructs a Margins with all sides set to 1" margins.
|
Margins(int margins)
Constructs a Margins with all sides set to the argument.
|
| Modifier and Type | Method and 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.
|
public int top
public int left
public int right
public int bottom
public Margins()
public Margins(int margins)
margins - the page margins, expressed in points. 72 points = 1".public Margins rotate()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object