public class PageMargin extends Margin
| Constructor and Description |
|---|
PageMargin() |
PageMargin(float header,
float footer)
Creates a new instance of this class with specified header and footer
sizes.
|
PageMargin(float left,
float top,
float right,
float bottom,
float header,
float footer)
Creates a new instance of this class with specified sizes for the left
margin, top margin, right margin, bottom margin, header region and footer
region.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getFooter()
Returns the size of the footer region.
|
float |
getGutter()
Returns the size of the page gutter.
|
float |
getHeader()
Returns size of the header region.
|
void |
setFooter(float footer)
Sets the footer region to specified size.
|
void |
setGutter(float gutter)
Sets the gutter to specified size.
|
void |
setHeader(float header)
Sets the header region to specified size.
|
public PageMargin()
public PageMargin(float header,
float footer)
header - header sizefooter - footer sizepublic PageMargin(float left,
float top,
float right,
float bottom,
float header,
float footer)
left - size of the left margintop - size of the top marginright - size of the right marginbottom - size of the bottom marginheader - size of the header regionfooter - size of the footer regionpublic float getHeader()
public void setHeader(float header)
header - size of the headerpublic float getFooter()
public void setFooter(float footer)
footer - size of the footer regionpublic float getGutter()
public void setGutter(float gutter)
gutter - size of the gutter