Package com.itextpdf.text
Class ZapfDingbatsList
- java.lang.Object
-
- com.itextpdf.text.List
-
- com.itextpdf.text.ZapfDingbatsList
-
- All Implemented Interfaces:
Indentable,Element,IAccessibleElement,TextElementArray
public class ZapfDingbatsList extends List
A special-version ofLISTwhich use zapfdingbats-letters.- See Also:
List
-
-
Field Summary
Fields Modifier and Type Field Description protected intznchar-number in zapfdingbats-
Fields inherited from class com.itextpdf.text.List
accessibleAttributes, alignindent, ALPHABETICAL, autoindent, first, indentationLeft, indentationRight, lettered, list, lowercase, LOWERCASE, numbered, NUMERICAL, ORDERED, postSymbol, preSymbol, role, symbol, symbolIndent, UNORDERED, UPPERCASE
-
Fields inherited from interface com.itextpdf.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, BODY, CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFBLOCK, CCITT_ENDOFLINE, CCITTG3_1D, CCITTG3_2D, CCITTG4, CHAPTER, CHUNK, CREATIONDATE, CREATOR, DIV, HEADER, IMGRAW, IMGTEMPLATE, JBIG2, JPEG, JPEG2000, KEYWORDS, LANGUAGE, LIST, LISTITEM, MARKED, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, SECTION, SUBJECT, TITLE, WRITABLE_DIRECT, YMARK
-
-
Constructor Summary
Constructors Constructor Description ZapfDingbatsList(int zn)Creates a ZapfDingbatsListZapfDingbatsList(int zn, int symbolIndent)Creates a ZapfDingbatsListZapfDingbatsList(int zn, int symbolIndent, BaseColor zapfDingbatColor)Creates a ZapfDingbatList with a colored symbol
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(Element o)Adds anElementto theList.ListcloneShallow()intgetCharNumber()get the char-numbervoidsetCharNumber(int zn)set the char-numbervoidsetDingbatColor(BaseColor zapfDingbatColor)Sets the dingbat's color.-
Methods inherited from class com.itextpdf.text.List
add, getAccessibleAttribute, getAccessibleAttributes, getChunks, getFirst, getFirstItem, getId, getIndentationLeft, getIndentationRight, getItems, getLastItem, getPostSymbol, getPreSymbol, getRole, getSymbol, getSymbolIndent, getTotalLeading, isAlignindent, isAutoindent, isContent, isEmpty, isInline, isLettered, isLowercase, isNestable, isNumbered, normalizeIndentation, populateProperties, process, setAccessibleAttribute, setAlignindent, setAutoindent, setFirst, setId, setIndentationLeft, setIndentationRight, setLettered, setListSymbol, setListSymbol, setLowercase, setNumbered, setPostSymbol, setPreSymbol, setRole, setSymbolIndent, size, type
-
-
-
-
Constructor Detail
-
ZapfDingbatsList
public ZapfDingbatsList(int zn)
Creates a ZapfDingbatsList- Parameters:
zn- a char-number
-
ZapfDingbatsList
public ZapfDingbatsList(int zn, int symbolIndent)Creates a ZapfDingbatsList- Parameters:
zn- a char-numbersymbolIndent- indent
-
ZapfDingbatsList
public ZapfDingbatsList(int zn, int symbolIndent, BaseColor zapfDingbatColor)Creates a ZapfDingbatList with a colored symbol- Parameters:
zn- a char-numbersymbolIndent- indentzapfDingbatColor- color for the ZpafDingbat
-
-
Method Detail
-
setDingbatColor
public void setDingbatColor(BaseColor zapfDingbatColor)
Sets the dingbat's color.- Parameters:
zapfDingbatColor- color for the ZapfDingbat
-
setCharNumber
public void setCharNumber(int zn)
set the char-number- Parameters:
zn- a char-number
-
getCharNumber
public int getCharNumber()
get the char-number- Returns:
- char-number
-
add
public boolean add(Element o)
Adds anElementto theList.- Specified by:
addin interfaceTextElementArray- Overrides:
addin classList- Parameters:
o- the object to add.- Returns:
- true if adding the object succeeded
-
cloneShallow
public List cloneShallow()
- Overrides:
cloneShallowin classList
-
-