| |
|
| java.lang.Object com.lowagie.text.Rectangle com.lowagie.text.HeaderFooter
All known Subclasses: com.lowagie.text.rtf.headerfooter.RtfHeaderFooterGroup, com.lowagie.text.rtf.RtfHeaderFooters, com.lowagie.text.rtf.RtfHeaderFooter, com.lowagie.text.rtf.headerfooter.RtfHeaderFooter,
HeaderFooter | public class HeaderFooter extends Rectangle (Code) | | A HeaderFooter -object is a Rectangle with text
that can be put above and/or below every page.
Example:
HeaderFooter header = new HeaderFooter(new Phrase("This is a header."), false);
HeaderFooter footer = new HeaderFooter(new Phrase("This is page "), new Phrase("."));
document.setHeader(header);
document.setFooter(footer);
|
Constructor Summary | |
public | HeaderFooter(Phrase before, Phrase after) Constructs a HeaderFooter -object. | public | HeaderFooter(Phrase before, boolean numbered) Constructs a Header -object with a pagenumber at the end. |
Method Summary | |
public int | alignment() Gets the alignment of this HeaderFooter. | public Phrase | getAfter() Gets the part that comes after the pageNumber. | public Phrase | getBefore() Gets the part that comes before the pageNumber. | public boolean | isNumbered() Checks if the HeaderFooter contains a page number. | public Paragraph | paragraph() Gets the Paragraph that can be used as header or footer. | public void | setAlignment(int alignment) Sets the alignment. | public void | setPageNumber(int pageN) Sets the page number. |
HeaderFooter | public HeaderFooter(Phrase before, Phrase after)(Code) | | Constructs a HeaderFooter -object.
Parameters: before - the Phrase before the pagenumber Parameters: after - the Phrase before the pagenumber |
HeaderFooter | public HeaderFooter(Phrase before, boolean numbered)(Code) | | Constructs a Header -object with a pagenumber at the end.
Parameters: before - the Phrase before the pagenumber Parameters: numbered - true if the page has to be numbered |
alignment | public int alignment()(Code) | | Gets the alignment of this HeaderFooter.
alignment |
getAfter | public Phrase getAfter()(Code) | | Gets the part that comes after the pageNumber.
a Phrase |
getBefore | public Phrase getBefore()(Code) | | Gets the part that comes before the pageNumber.
a Phrase |
isNumbered | public boolean isNumbered()(Code) | | Checks if the HeaderFooter contains a page number.
true if the page has to be numbered |
paragraph | public Paragraph paragraph()(Code) | | Gets the Paragraph that can be used as header or footer.
a Paragraph |
setAlignment | public void setAlignment(int alignment)(Code) | | Sets the alignment.
Parameters: alignment - the new alignment |
setPageNumber | public void setPageNumber(int pageN)(Code) | | Sets the page number.
Parameters: pageN - the new page number |
|
|
|