Save This Page
Home » iText-src-2.1.3 » com.lowagie » text » rtf » text » [javadoc | source]
com.lowagie.text.rtf.text
public class: RtfParagraph [javadoc | source]
java.lang.Object
   com.lowagie.text.rtf.RtfElement
      com.lowagie.text.rtf.text.RtfPhrase
         com.lowagie.text.rtf.text.RtfParagraph

All Implemented Interfaces:
    RtfBasicElement

Direct Known Subclasses:
    RtfListItem

The RtfParagraph is an extension of the RtfPhrase that adds alignment and indentation properties. It wraps a Paragraph.
Field Summary
public static final  byte[] PARAGRAPH    Constant for the end of a paragraph 
protected  RtfParagraphStyle paragraphStyle    An optional RtfParagraphStyle to use for styling. 
Fields inherited from com.lowagie.text.rtf.text.RtfPhrase:
PARAGRAPH_DEFAULTS,  PLAIN,  IN_TABLE,  LINE_SPACING,  chunks
Fields inherited from com.lowagie.text.rtf.RtfElement:
document,  inTable,  inHeader
Constructor:
 public RtfParagraph(RtfDocument doc,
    Paragraph paragraph) 
    Constructs a RtfParagraph belonging to a RtfDocument based on a Paragraph.
    Parameters:
    doc - The RtfDocument this RtfParagraph belongs to
    paragraph - The Paragraph that this RtfParagraph is based on
Method from com.lowagie.text.rtf.text.RtfParagraph Summary:
getIndentLeft,   getIndentRight,   setIndentLeft,   setIndentRight,   setKeepTogetherWithNext,   writeContent
Methods from com.lowagie.text.rtf.text.RtfPhrase:
setInHeader,   setInTable,   setRtfDocument,   writeContent
Methods from com.lowagie.text.rtf.RtfElement:
intToByteArray,   isInTable,   setInHeader,   setInTable,   setRtfDocument,   writeContent
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.lowagie.text.rtf.text.RtfParagraph Detail:
 public int getIndentLeft() 
    Gets the left indentation of this RtfParagraph.
 public int getIndentRight() 
    Gets the right indentation of this RtfParagraph.
 public  void setIndentLeft(int indentLeft) 
    Sets the left indentation of this RtfParagraph.
 public  void setIndentRight(int indentRight) 
    Sets the right indentation of this RtfParagraph.
 public  void setKeepTogetherWithNext(boolean keepTogetherWithNext) 
    Set whether this RtfParagraph must stay on the same page as the next one.
 public  void writeContent(OutputStream result) throws IOException 
    Writes the content of this RtfParagraph. First paragraph specific data is written and then the RtfChunks of this RtfParagraph are added.