public class RtfHeaderFooter extends HeaderFooter implements RtfBasicElement
| Modifier and Type | Field and Description |
|---|---|
static int |
DISPLAY_ALL_PAGES
Constant for displaying the header/footer on all pages
|
static int |
DISPLAY_FIRST_PAGE
Constant for displaying the header/footer on the first page
|
static int |
DISPLAY_LEFT_PAGES
Constant for displaying the header/footer on all left hand pages
|
static int |
DISPLAY_RIGHT_PAGES
Constant for displaying the header/footer on all right hand pages
|
static int |
TYPE_FOOTER
Constant for the footer type
|
static int |
TYPE_HEADER
Constant for the header type
|
backgroundColor, border, borderColor, borderColorBottom, borderColorLeft, borderColorRight, borderColorTop, borderWidth, borderWidthBottom, borderWidthLeft, borderWidthRight, borderWidthTop, BOTTOM, BOX, LEFT, llx, lly, NO_BORDER, RIGHT, rotation, TOP, UNDEFINED, urx, ury, useVariableBordersCLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTORALIGN_BASELINE, ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_JUSTIFIED, ALIGN_JUSTIFIED_ALL, ALIGN_LEFT, ALIGN_MIDDLE, ALIGN_RIGHT, ALIGN_TOP, ALIGN_UNDEFINED, ANCHOR, ANNOTATION, AUTHOR, CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFBLOCK, CCITT_ENDOFLINE, CCITTG3_1D, CCITTG3_2D, CCITTG4, CELL, CREATIONDATE, CREATOR, HEADER, CHAPTER, CHUNK, IMGRAW, IMGTEMPLATE, JBIG2, JPEG, JPEG2000, KEYWORDS, LIST, LISTITEM, MARKED, MULTI_COLUMN_TEXT, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, TITLE, YMARK| Modifier | Constructor and Description |
|---|---|
|
RtfHeaderFooter(Element element)
Constructs a RtfHeaderFooter for any Element.
|
|
RtfHeaderFooter(Element[] elements)
Constructs a RtfHeaderFooter for an array of Elements.
|
protected |
RtfHeaderFooter(RtfDocument doc,
HeaderFooter headerFooter)
Constructs a RtfHeaderFooter for a HeaderFooter.
|
protected |
RtfHeaderFooter(RtfDocument doc,
HeaderFooter headerFooter,
int type,
int displayAt)
Constructs a RtfHeaderFooter based on a HeaderFooter with a certain type and displayAt
location.
|
protected |
RtfHeaderFooter(RtfDocument doc,
RtfHeaderFooter headerFooter,
int displayAt)
Constructs a RtfHeaderFooter as a copy of an existing RtfHeaderFooter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setAlignment(int alignment)
Set the alignment of this RtfHeaderFooter.
|
void |
setDisplayAt(int displayAt)
Sets the display location of this RtfHeaderFooter
|
void |
setInHeader(boolean inHeader)
Unused
|
void |
setInTable(boolean inTable)
Unused
|
void |
setRtfDocument(RtfDocument doc)
Sets the RtfDocument this RtfElement belongs to
|
void |
setType(int type)
Sets the type of this RtfHeaderFooter
|
void |
writeContent(OutputStream result)
Writes the content of this RtfHeaderFooter
|
alignment, getAfter, getBefore, isNumbered, paragraph, setPageNumbercloneNonPositionParameters, disableBorderSide, enableBorderSide, getBackgroundColor, getBorder, getBorderColor, getBorderColorBottom, getBorderColorLeft, getBorderColorRight, getBorderColorTop, getBorderWidth, getBorderWidthBottom, getBorderWidthLeft, getBorderWidthRight, getBorderWidthTop, getBottom, getBottom, getGrayFill, getHeight, getChunks, getLeft, getLeft, getRight, getRight, getRotation, getTop, getTop, getWidth, hasBorder, hasBorders, isContent, isNestable, isUseVariableBorders, normalize, process, rectangle, rotate, setBackgroundColor, setBorder, setBorderColor, setBorderColorBottom, setBorderColorLeft, setBorderColorRight, setBorderColorTop, setBorderWidth, setBorderWidthBottom, setBorderWidthLeft, setBorderWidthRight, setBorderWidthTop, setBottom, setGrayFill, setLeft, setRight, setTop, setUseVariableBorders, softCloneNonPositionParameters, toString, typepublic static final int TYPE_HEADER
public static final int TYPE_FOOTER
public static final int DISPLAY_FIRST_PAGE
public static final int DISPLAY_ALL_PAGES
public static final int DISPLAY_LEFT_PAGES
public static final int DISPLAY_RIGHT_PAGES
protected RtfHeaderFooter(RtfDocument doc, HeaderFooter headerFooter, int type, int displayAt)
doc - The RtfDocument this RtfHeaderFooter belongs toheaderFooter - The HeaderFooter to base this RtfHeaderFooter ontype - The type of RtfHeaderFooterdisplayAt - The display location of this RtfHeaderFooterprotected RtfHeaderFooter(RtfDocument doc, RtfHeaderFooter headerFooter, int displayAt)
doc - The RtfDocument this RtfHeaderFooter belongs toheaderFooter - The RtfHeaderFooter to copydisplayAt - The display location of this RtfHeaderFooterprotected RtfHeaderFooter(RtfDocument doc, HeaderFooter headerFooter)
doc - The RtfDocument this RtfHeaderFooter belongs toheaderFooter - The HeaderFooter to base this RtfHeaderFooter onpublic RtfHeaderFooter(Element element)
element - The Element to display as content of this RtfHeaderFooterpublic RtfHeaderFooter(Element[] elements)
elements - The Elements to display as the content of this RtfHeaderFooter.public void setRtfDocument(RtfDocument doc)
setRtfDocument in interface RtfBasicElementdoc - The RtfDocument to usepublic void writeContent(OutputStream result) throws IOException
writeContent in interface RtfBasicElementresult - The OutputStream to write the content toIOExceptionpublic void setDisplayAt(int displayAt)
displayAt - The display location to use.public void setType(int type)
type - The type to use.public void setInTable(boolean inTable)
setInTable in interface RtfBasicElementinTable - public void setInHeader(boolean inHeader)
setInHeader in interface RtfBasicElementinHeader - public void setAlignment(int alignment)
setAlignment in class HeaderFooteralignment - the new alignmentCopyright © 2015. All rights reserved.