|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.lowagie.text.Chunk
com.lowagie.text.rtf.RtfAddableElement
public abstract class RtfAddableElement
The RtfAddableElement is the superclass for all rtf specific elements that need to be added to an iText document. It is an extension of Chunk and it also implements RtfBasicElement. It is an abstract class thus it cannot be instantiated itself and has to be subclassed to be used.
| Field Summary | |
|---|---|
protected RtfDocument |
doc
The RtfDocument this RtfAddableElement belongs to. |
protected boolean |
inHeader
Whether this RtfAddableElement is contained in a header. |
protected boolean |
inTable
Whether this RtfAddableElement is contained in a table. |
| Fields inherited from class com.lowagie.text.Chunk |
|---|
ACTION, attributes, BACKGROUND, COLOR, content, ENCODING, font, GENERICTAG, HSCALE, HYPHENATION, IMAGE, LOCALDESTINATION, LOCALGOTO, NEWLINE, NEWPAGE, NEXTPAGE, OBJECT_REPLACEMENT_CHARACTER, PDFANNOTATION, REMOTEGOTO, SKEW, SPLITCHARACTER, SUBSUPSCRIPT, TEXTRENDERMODE, UNDERLINE |
| Fields inherited from interface com.lowagie.text.rtf.RtfBasicElement |
|---|
CLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR |
| Fields inherited from interface com.lowagie.text.Element |
|---|
ALIGN_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, CHAPTER, CHUNK, CREATIONDATE, CREATOR, HEADER, IMGRAW, IMGTEMPLATE, JPEG, JPEG2000, KEYWORDS, LIST, LISTITEM, MARKED, MULTI_COLUMN_TEXT, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, TITLE |
| Constructor Summary | |
|---|---|
RtfAddableElement()
Constructs a new RtfAddableElement. |
|
| Method Summary | |
|---|---|
byte[] |
intToByteArray(int i)
Transforms an integer into its String representation and then returns the bytes of that string. |
boolean |
isEmpty()
RtfAddableElement subclasses are never assumed to be empty. |
void |
setInHeader(boolean inHeader)
Sets whether this RtfAddableElement is contained in a header/footer. |
void |
setInTable(boolean inTable)
Sets whether this RtfAddableElement is contained in a table. |
void |
setRtfDocument(RtfDocument doc)
Sets the RtfDocument this RtfAddableElement belongs to |
abstract byte[] |
write()
Deprecated. As of iText 2.0.6 or earlier, replaced by writeContent(OutputStream), scheduled for removal at or after 2.1.0 |
void |
writeContent(OutputStream out)
Writes the element content to the given output stream. |
| Methods inherited from class com.lowagie.text.Chunk |
|---|
addToArray, append, content, font, getAttributes, getChunks, getContent, getFont, getHorizontalScaling, getImage, getKeySet, getTextRise, getWidthPoint, hasAttributes, isContent, isNestable, process, setAction, setAnchor, setAnchor, setAnnotation, setAttributes, setBackground, setBackground, setFont, setGenericTag, setHorizontalScaling, setHyphenation, setLocalDestination, setLocalGoto, setNewPage, setRemoteGoto, setRemoteGoto, setSkew, setSplitCharacter, setTextRenderMode, setTextRise, setUnderline, setUnderline, toString, type |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected RtfDocument doc
protected boolean inTable
protected boolean inHeader
| Constructor Detail |
|---|
public RtfAddableElement()
| Method Detail |
|---|
public abstract byte[] write()
writeContent(OutputStream), scheduled for removal at or after 2.1.0
write in interface RtfBasicElement
public void writeContent(OutputStream out)
throws IOException
write() method which is now deprecated.
writeContent in interface RtfBasicElementIOExceptionpublic void setRtfDocument(RtfDocument doc)
setRtfDocument in interface RtfBasicElementdoc - The RtfDocument to usepublic void setInTable(boolean inTable)
setInTable in interface RtfBasicElementinTable - Whether this RtfBasicElement is in a tablepublic void setInHeader(boolean inHeader)
setInHeader in interface RtfBasicElementinHeader - Whether this RtfBasicElement is in a headerpublic byte[] intToByteArray(int i)
i - The integer to convert
public boolean isEmpty()
isEmpty in class Chunkfalse if the Chunk contains other characters than
space.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||