de.betabeans.scroogexhtml
Class ScroogeXHTMLDocParagraph

java.lang.Object
  |
  +--de.betabeans.scroogexhtml.ScroogeXHTMLDocParagraph

public class ScroogeXHTMLDocParagraph
extends java.lang.Object

ScroogeXHTML creates a ScroogeXHTMLDocParagraph object for each paragraph of the document. A ScroogeXHTMLDocParagraph object stores the paragraph properties and a sequence of text objects.
The toString() method iterates the list of text objects and converts the paragraph to XHTML.

Author:
Michael
See Also:
ScroogeXHTMLDocument, ScroogeXHTMLDocText

Field Summary
protected  ScroogeXHTMLDocument document
          Description of the Field
 
Constructor Summary
ScroogeXHTMLDocParagraph(ScroogeXHTMLDocument document)
          Constructor for the ScroogeXHTMLDocParagraph object
 
Method Summary
protected  void add(char c)
          add a character to the text last current text object in the paragraph
protected  void add(java.lang.String text)
          add a String to the text last current text object in the paragraph
protected  boolean isEmpty()
           
protected  ScroogeXHTMLDocText nextText()
          add and return a new empty text element, recycle empty text buffer
protected  void setParProperties(int al, boolean pn, int nl, int li, int ri, int fi)
          Sets the paragraph properties of the ScroogeXHTMLDocParagraph object
 java.lang.String toString()
          convert the paragraph text
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

document

protected ScroogeXHTMLDocument document
Description of the Field
Constructor Detail

ScroogeXHTMLDocParagraph

public ScroogeXHTMLDocParagraph(ScroogeXHTMLDocument document)
Constructor for the ScroogeXHTMLDocParagraph object
Parameters:
document - Description of Parameter
Method Detail

toString

public java.lang.String toString()
convert the paragraph text
Overrides:
toString in class java.lang.Object
Returns:
text

setParProperties

protected void setParProperties(int al,
                                boolean pn,
                                int nl,
                                int li,
                                int ri,
                                int fi)
Sets the paragraph properties of the ScroogeXHTMLDocParagraph object
Parameters:
al - The new parProperties value
pn - The new parProperties value
nl - The new parProperties value
li - The new parProperties value
ri - The new parProperties value
fi - The new parProperties value

isEmpty

protected boolean isEmpty()
Returns:
The empty value

add

protected void add(java.lang.String text)
add a String to the text last current text object in the paragraph
Parameters:
text - String to be added

add

protected void add(char c)
add a character to the text last current text object in the paragraph
Parameters:
c - character to be added

nextText

protected ScroogeXHTMLDocText nextText()
add and return a new empty text element, recycle empty text buffer
Returns:
new and empty text element