Package com.lowagie.text.rtf
Interface RtfBasicElement
- All Superinterfaces:
com.lowagie.text.RtfElementInterface
- All Known Subinterfaces:
RtfExtendedElement
- All Known Implementing Classes:
RtfAddableElement
,RtfAnchor
,RtfAnnotation
,RtfBorder
,RtfBorderGroup
,RtfCell
,RtfChapter
,RtfChunk
,RtfCodePage
,RtfColor
,RtfColorList
,RtfDirectContent
,RtfDocument
,RtfDocumentHeader
,RtfElement
,RtfField
,RtfFont
,RtfFontList
,RtfFootnote
,RtfFootnoteSetting
,RtfGenerator
,RtfHeaderFooter
,RtfHeaderFooterGroup
,RtfImage
,RtfInfoElement
,RtfInfoGroup
,RtfList
,RtfListItem
,RtfListLevel
,RtfListTable
,RtfNewPage
,RtfPageNumber
,RtfPageSetting
,RtfParagraph
,RtfParagraphStyle
,RtfPhrase
,RtfPictureList
,RtfProtectionSetting
,RtfRow
,RtfSection
,RtfShape
,RtfShapePosition
,RtfShapeProperty
,RtfStylesheetList
,RtfTab
,RtfTabGroup
,RtfTable
,RtfTableOfContents
,RtfTOCEntry
,RtfTotalPageNumber
public interface RtfBasicElement
extends com.lowagie.text.RtfElementInterface
The RtfBasicElement interface defines the interface for elements that can
be added to the RtfWriter.
- Version:
- $Id: RtfBasicElement.java 3580 2008-08-06 15:52:00Z howard_s $
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byte[]
Constant for the end of an rtf groupstatic final byte[]
Constant for a comma delimiter in rtfstatic final byte[]
Constant for a delimiter in rtfstatic final byte[]
Constant for the beginning of a rtf groupstatic final double
The factor to use for translating from iText to rtf measurements -
Method Summary
Modifier and TypeMethodDescriptionvoid
setInHeader
(boolean inHeader) Sets whether this RtfBasicElement is in a headervoid
setInTable
(boolean inTable) Sets whether this RtfBasicElement is in a tablevoid
Sets the RtfDocument this RtfElement belongs tovoid
writeContent
(OutputStream out) Writes the element content to the given output stream.
-
Field Details
-
OPEN_GROUP
static final byte[] OPEN_GROUPConstant for the beginning of a rtf group -
CLOSE_GROUP
static final byte[] CLOSE_GROUPConstant for the end of an rtf group -
DELIMITER
static final byte[] DELIMITERConstant for a delimiter in rtf -
COMMA_DELIMITER
static final byte[] COMMA_DELIMITERConstant for a comma delimiter in rtf -
TWIPS_FACTOR
static final double TWIPS_FACTORThe factor to use for translating from iText to rtf measurements- See Also:
-
-
Method Details
-
writeContent
Writes the element content to the given output stream.- Parameters:
out
- TheOutputStream
to write the content to- Throws:
IOException
-
setRtfDocument
Sets the RtfDocument this RtfElement belongs to- Parameters:
doc
- The @link{com.lowagie.text.rtf.document.RtfDocument} thisRtfElement
belongs to
-
setInTable
void setInTable(boolean inTable) Sets whether this RtfBasicElement is in a table- Parameters:
inTable
- Whether this RtfBasicElement is in a table
-
setInHeader
void setInHeader(boolean inHeader) Sets whether this RtfBasicElement is in a header- Parameters:
inHeader
- Whether this RtfBasicElement is in a header
-