public class PageMargins extends Object
Represents page margins for printing.
Constructor and Description |
---|
PageMargins() |
Modifier and Type | Method and Description |
---|---|
int |
getBorders()
Gets a position where to print borders.
|
double |
getBottom()
Gets the size of the bottom margin in inches or centimeters.
|
double |
getLeft()
Gets the size of the left margin in inches or centimeters.
|
double |
getRight()
Gets the size of the right margin in inches or centimeters.
|
double |
getTop()
Gets the size of the top margin in inches or centimeters.
|
void |
setBorders(int value)
Sets a position where to print borders.
|
void |
setBottom(double value)
Sets the size of the bottom margin in inches or centimeters.
|
void |
setLeft(double value)
Sets the size of the left margin in inches or centimeters.
|
void |
setRight(double value)
Sets the size of the right margin in inches or centimeters.
|
void |
setTop(double value)
Sets the size of the top margin in inches or centimeters.
|
public final int getBorders()
Gets a position where to print borders. Can be one of the values of the Border
enumeration.
public final void setBorders(int value)
Sets a position where to print borders. Can be one of the values of the Border
enumeration.
value
- a position where to print borders.public final double getBottom()
Gets the size of the bottom margin in inches or centimeters.
public final void setBottom(double value)
Sets the size of the bottom margin in inches or centimeters.
value
- the size of the bottom margin in inches or centimeters.public final double getLeft()
Gets the size of the left margin in inches or centimeters.
public final void setLeft(double value)
Sets the size of the left margin in inches or centimeters.
value
- the size of the left margin in inches or centimeters.public final double getRight()
Gets the size of the right margin in inches or centimeters.
public final void setRight(double value)
Sets the size of the right margin in inches or centimeters.
value
- the size of the right margin in inches or centimeters.public final double getTop()
Gets the size of the top margin in inches or centimeters.
public final void setTop(double value)
Sets the size of the top margin in inches or centimeters.
value
- the size of the top margin in inches or centimeters.