|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
com.lowagie.text.Phrase
com.lowagie.text.Paragraph
A Paragraph is a series of Chunks and/or Phrases.
A Paragraph has the same qualities of a Phrase, but also
some additional layout-parameters:
Paragraph p = new Paragraph("This is a paragraph",
FontFactory.getFont(FontFactory.HELVETICA, 18, Font.BOLDITALIC, new Color(0, 0, 255)));
Element,
Phrase,
ListItem,
Serialized Form| Nested Class Summary |
| Nested classes inherited from class java.util.AbstractList |
|
| Field Summary | |
protected int |
alignment
The alignment of the text. |
protected float |
indentationLeft
The indentation of this paragraph on the left side. |
protected float |
indentationRight
The indentation of this paragraph on the right side. |
protected boolean |
keeptogether
Does the paragraph has to be kept together on 1 page. |
| Fields inherited from class com.lowagie.text.Phrase |
font, leading, markupAttributes |
| Fields inherited from class java.util.ArrayList |
|
| 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, GRAPHIC, HEADER, IMGRAW, IMGTEMPLATE, JPEG, KEYWORDS, LIST, LISTITEM, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, TITLE |
| Constructor Summary | |
Paragraph()
Constructs a Paragraph. |
|
Paragraph(Chunk chunk)
Constructs a Paragraph with a certain Chunk. |
|
Paragraph(float leading)
Constructs a Paragraph with a certain leading. |
|
Paragraph(float leading,
Chunk chunk)
Constructs a Paragraph with a certain Chunk
and a certain leading. |
|
Paragraph(float leading,
String string)
Constructs a Paragraph with a certain String
and a certain leading. |
|
Paragraph(float leading,
String string,
Font font)
Constructs a Paragraph with a certain leading, String
and Font. |
|
Paragraph(Phrase phrase)
Constructs a Paragraph with a certain Phrase. |
|
Paragraph(Properties attributes)
Returns a Paragraph that has been constructed taking in account
the value of some attributes. |
|
Paragraph(String string)
Constructs a Paragraph with a certain String. |
|
Paragraph(String string,
Font font)
Constructs a Paragraph with a certain String
and a certain Font. |
|
| Method Summary | |
boolean |
add(Object o)
Adds an Object to the Paragraph. |
int |
alignment()
Gets the alignment of this paragraph. |
boolean |
getKeepTogether()
Checks if this paragraph has to be kept together on one page. |
float |
indentationLeft()
Gets the indentation of this paragraph on the left side. |
float |
indentationRight()
Gets the indentation of this paragraph on the right side. |
static boolean |
isTag(String tag)
Checks if a given tag corresponds with this object. |
void |
setAlignment(int alignment)
Sets the alignment of this paragraph. |
void |
setAlignment(String alignment)
Sets the alignment of this paragraph. |
void |
setIndentationLeft(float indentation)
Sets the indentation of this paragraph on the left side. |
void |
setIndentationRight(float indentation)
Sets the indentation of this paragraph on the right side. |
void |
setKeepTogether(boolean keeptogether)
Indicates that the paragraph has to be kept together on one page. |
int |
type()
Gets the type of the text element. |
| Methods inherited from class com.lowagie.text.Phrase |
add, addAll, addSpecial, font, getChunks, getMarkupAttribute, getMarkupAttributeNames, getMarkupAttributes, isEmpty, leading, leadingDefined, process, setLeading, setMarkupAttribute, setMarkupAttributes |
| Methods inherited from class java.util.ArrayList |
addAll, clear, clone, contains, ensureCapacity, get, indexOf, lastIndexOf, 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, remove, removeAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.lowagie.text.Element |
getChunks, process, toString |
| Methods inherited from interface com.lowagie.text.MarkupAttributes |
getMarkupAttribute, getMarkupAttributeNames, getMarkupAttributes, setMarkupAttribute, setMarkupAttributes |
| Methods inherited from interface java.util.List |
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList |
| Field Detail |
protected int alignment
protected float indentationLeft
protected float indentationRight
protected boolean keeptogether
| Constructor Detail |
public Paragraph()
Paragraph.
public Paragraph(float leading)
Paragraph with a certain leading.
leading - the leadingpublic Paragraph(Chunk chunk)
Paragraph with a certain Chunk.
chunk - a Chunk
public Paragraph(float leading,
Chunk chunk)
Paragraph with a certain Chunk
and a certain leading.
leading - the leadingchunk - a Chunkpublic Paragraph(String string)
Paragraph with a certain String.
string - a String
public Paragraph(String string,
Font font)
Paragraph with a certain String
and a certain Font.
string - a Stringfont - a Font
public Paragraph(float leading,
String string)
Paragraph with a certain String
and a certain leading.
leading - the leadingstring - a String
public Paragraph(float leading,
String string,
Font font)
Paragraph with a certain leading, String
and Font.
leading - the leadingstring - a Stringfont - a Fontpublic Paragraph(Phrase phrase)
Paragraph with a certain Phrase.
phrase - a Phrasepublic Paragraph(Properties attributes)
Paragraph that has been constructed taking in account
the value of some attributes.
attributes - Some attributes| Method Detail |
public int type()
type in interface Elementtype in class Phrasepublic boolean add(Object o)
Object to the Paragraph.
add in interface TextElementArrayadd in class Phraseo - object the object to add.
public void setAlignment(int alignment)
alignment - the new alignmentpublic void setAlignment(String alignment)
alignment - the new alignment as a Stringpublic void setIndentationLeft(float indentation)
indentation - the new indentationpublic void setIndentationRight(float indentation)
indentation - the new indentationpublic void setKeepTogether(boolean keeptogether)
keeptogether - true of the paragraph may not be split over 2 pagespublic boolean getKeepTogether()
public int alignment()
public float indentationLeft()
public float indentationRight()
public static boolean isTag(String tag)
tag - the given tag
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||