fr.opensagres.xdocreport.itext.extension
Class ExtendedParagraph

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList
              extended by com.lowagie.text.Phrase
                  extended by com.lowagie.text.Paragraph
                      extended by fr.opensagres.xdocreport.itext.extension.ExtendedParagraph
All Implemented Interfaces:
com.lowagie.text.Element, com.lowagie.text.TextElementArray, IITextContainer, IITextElement, Serializable, Cloneable, Iterable, Collection, List, RandomAccess
Direct Known Subclasses:
StylableParagraph, StylableParagraph, StylableParagraphWrapper

public class ExtendedParagraph
extends com.lowagie.text.Paragraph
implements IITextContainer

See Also:
Serialized Form

Field Summary
static Color TRANSPARENT_COLOR
           
protected  com.lowagie.text.pdf.PdfPCell wrapperCell
           
protected  com.lowagie.text.pdf.PdfPTable wrapperTable
           
 
Fields inherited from class com.lowagie.text.Paragraph
alignment, indentationLeft, indentationRight, keeptogether, multipliedLeading, spacingAfter, spacingBefore
 
Fields inherited from class com.lowagie.text.Phrase
font, hyphenation, leading
 
Fields inherited from class java.util.AbstractList
modCount
 
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, JBIG2, JPEG, JPEG2000, KEYWORDS, LIST, LISTITEM, MARKED, MULTI_COLUMN_TEXT, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, TITLE, YMARK
 
Constructor Summary
ExtendedParagraph()
           
ExtendedParagraph(com.lowagie.text.Paragraph paragraph)
           
 
Method Summary
 void addElement(com.lowagie.text.Element element)
           
protected  com.lowagie.text.pdf.PdfPTable createWrapperTable(com.lowagie.text.pdf.PdfPCell wrapperCell, boolean addParagraph)
           
 com.lowagie.text.Element getElement()
           
 IITextContainer getITextContainer()
           
protected  com.lowagie.text.pdf.PdfPCell getWrapperCell()
           
 boolean hasBackgroundColor()
           
 boolean hasBorders()
           
 void setBackgroundColor(Color backgroundColor)
           
 void setBorderColorBottom(Color borderColorBottom)
          Sets the color of the Bottom border.
 void setBorderColorLeft(Color borderColorLeft)
          Sets the color of the Left border.
 void setBorderColorRight(Color borderColorRight)
          Sets the color of the Right border.
 void setBorderColorTop(Color borderColorTop)
          Sets the color of the top border.
 void setBorderPadding(float padding)
          Sets the padding of the contents in the cell (space between content and border).
 void setBorderPaddingBottom(float paddingBottom)
          Setter for property paddingBottom.
 void setBorderPaddingLeft(float paddingLeft)
          Setter for property paddingLeft.
 void setBorderPaddingRight(float paddingRight)
          Setter for property paddingRight.
 void setBorderPaddingTop(float paddingTop)
          Setter for property paddingTop.
 void setBorderWidthBottom(float borderWidthBottom)
          Sets the width of the bottom border.
 void setBorderWidthLeft(float borderWidthLeft)
          Sets the width of the Left border.
 void setBorderWidthRight(float borderWidthRight)
          Sets the width of the Right border.
 void setBorderWidthTop(float borderWidthTop)
          Sets the width of the Top border.
 void setIndentation(com.lowagie.text.Paragraph paragraph)
           
 void setITextContainer(IITextContainer container)
           
 void setSpacingAfter(com.lowagie.text.Paragraph paragraph)
           
 void setSpacingBefore(com.lowagie.text.Paragraph paragraph)
           
 
Methods inherited from class com.lowagie.text.Paragraph
add, getAlignment, getExtraParagraphSpace, getFirstLineIndent, getIndentationLeft, getIndentationRight, getKeepTogether, getMultipliedLeading, getSpacingAfter, getSpacingBefore, getTotalLeading, setAlignment, setAlignment, setExtraParagraphSpace, setFirstLineIndent, setIndentationLeft, setIndentationRight, setKeepTogether, setLeading, setLeading, setMultipliedLeading, setSpacingAfter, setSpacingBefore, spacingAfter, spacingBefore, type
 
Methods inherited from class com.lowagie.text.Phrase
add, addAll, addChunk, addSpecial, getChunks, getContent, getFont, getHyphenation, getInstance, getInstance, getInstance, getLeading, hasLeading, isContent, isEmpty, isNestable, process, setFont, setHyphenation
 
Methods inherited from class java.util.ArrayList
addAll, clear, clone, contains, ensureCapacity, get, indexOf, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.lowagie.text.Element
toString
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Field Detail

TRANSPARENT_COLOR

public static final Color TRANSPARENT_COLOR

wrapperCell

protected com.lowagie.text.pdf.PdfPCell wrapperCell

wrapperTable

protected com.lowagie.text.pdf.PdfPTable wrapperTable
Constructor Detail

ExtendedParagraph

public ExtendedParagraph()

ExtendedParagraph

public ExtendedParagraph(com.lowagie.text.Paragraph paragraph)
Method Detail

addElement

public void addElement(com.lowagie.text.Element element)
Specified by:
addElement in interface IITextContainer

getITextContainer

public IITextContainer getITextContainer()
Specified by:
getITextContainer in interface IITextElement

setITextContainer

public void setITextContainer(IITextContainer container)
Specified by:
setITextContainer in interface IITextElement

getWrapperCell

protected com.lowagie.text.pdf.PdfPCell getWrapperCell()

createWrapperTable

protected com.lowagie.text.pdf.PdfPTable createWrapperTable(com.lowagie.text.pdf.PdfPCell wrapperCell,
                                                            boolean addParagraph)

getElement

public com.lowagie.text.Element getElement()

hasBorders

public boolean hasBorders()

hasBackgroundColor

public boolean hasBackgroundColor()

setSpacingBefore

public void setSpacingBefore(com.lowagie.text.Paragraph paragraph)

setSpacingAfter

public void setSpacingAfter(com.lowagie.text.Paragraph paragraph)

setIndentation

public void setIndentation(com.lowagie.text.Paragraph paragraph)

setBackgroundColor

public void setBackgroundColor(Color backgroundColor)

setBorderWidthTop

public void setBorderWidthTop(float borderWidthTop)
Sets the width of the Top border.

Parameters:
borderWidthTop - a width

setBorderColorTop

public void setBorderColorTop(Color borderColorTop)
Sets the color of the top border.

Parameters:
borderColorTop - a Color

setBorderWidthBottom

public void setBorderWidthBottom(float borderWidthBottom)
Sets the width of the bottom border.

Parameters:
borderWidthBottom - a width

setBorderColorBottom

public void setBorderColorBottom(Color borderColorBottom)
Sets the color of the Bottom border.

Parameters:
borderColorBottom - a Color

setBorderWidthLeft

public void setBorderWidthLeft(float borderWidthLeft)
Sets the width of the Left border.

Parameters:
borderWidthLeft - a width

setBorderColorLeft

public void setBorderColorLeft(Color borderColorLeft)
Sets the color of the Left border.

Parameters:
borderColorLeft - a Color

setBorderWidthRight

public void setBorderWidthRight(float borderWidthRight)
Sets the width of the Right border.

Parameters:
borderWidthRight - a width

setBorderColorRight

public void setBorderColorRight(Color borderColorRight)
Sets the color of the Right border.

Parameters:
borderColorRight - a Color

setBorderPadding

public void setBorderPadding(float padding)
Sets the padding of the contents in the cell (space between content and border).

Parameters:
padding -

setBorderPaddingLeft

public void setBorderPaddingLeft(float paddingLeft)
Setter for property paddingLeft.

Parameters:
paddingLeft - New value of property paddingLeft.

setBorderPaddingRight

public void setBorderPaddingRight(float paddingRight)
Setter for property paddingRight.

Parameters:
paddingRight - New value of property paddingRight.

setBorderPaddingBottom

public void setBorderPaddingBottom(float paddingBottom)
Setter for property paddingBottom.

Parameters:
paddingBottom - New value of property paddingBottom.

setBorderPaddingTop

public void setBorderPaddingTop(float paddingTop)
Setter for property paddingTop.

Parameters:
paddingTop - New value of property paddingTop.


Copyright © 2013. All rights reserved.