Package com.itextpdf.text
Class ZapfDingbatsList
java.lang.Object
com.itextpdf.text.List
com.itextpdf.text.ZapfDingbatsList
- All Implemented Interfaces:
Indentable
,Element
,IAccessibleElement
,TextElementArray
A special-version of
LIST
which use zapfdingbats-letters.- See Also:
-
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionZapfDingbatsList
(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
Modifier and TypeMethodDescriptionboolean
Adds anElement
to theList
.int
get the char-numbervoid
setCharNumber
(int zn) set the char-numbervoid
setDingbatColor
(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
-
Field Details
-
zn
protected int znchar-number in zapfdingbats
-
-
Constructor Details
-
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
Creates a ZapfDingbatList with a colored symbol- Parameters:
zn
- a char-numbersymbolIndent
- indentzapfDingbatColor
- color for the ZpafDingbat
-
-
Method Details
-
setDingbatColor
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
Adds anElement
to theList
.- Specified by:
add
in interfaceTextElementArray
- Overrides:
add
in classList
- Parameters:
o
- the object to add.- Returns:
- true if adding the object succeeded
-
cloneShallow
- Overrides:
cloneShallow
in classList
-