com.itextpdf.text
Class ZapfDingbatsList

java.lang.Object
  extended by com.itextpdf.text.List
      extended by com.itextpdf.text.ZapfDingbatsList
All Implemented Interfaces:
Indentable, Element, IAccessibleElement, TextElementArray

public class ZapfDingbatsList
extends List

A special-version of LIST which use zapfdingbats-letters.

Author:
Michael Niedermair and Bruno Lowagie
See Also:
List

Field Summary
protected  int zn
          char-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, 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
ZapfDingbatsList(int zn)
          Creates a ZapfDingbatsList
ZapfDingbatsList(int zn, int symbolIndent)
          Creates a ZapfDingbatsList
ZapfDingbatsList(int zn, int symbolIndent, BaseColor zapfDingbatColor)
          Creates a ZapfDingbatList with a colored symbol
 
Method Summary
 boolean add(Element o)
          Adds an Element to the List.
 int getCharNumber()
          get the char-number
 void setCharNumber(int zn)
          set the char-number
 void 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, isLettered, isLowercase, isNestable, isNumbered, normalizeIndentation, process, setAccessibleAttribute, setAlignindent, setAutoindent, setFirst, setId, setIndentationLeft, setIndentationRight, setLettered, setListSymbol, setListSymbol, setLowercase, setNumbered, setPostSymbol, setPreSymbol, setRole, setSymbolIndent, size, type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.itextpdf.text.Element
toString
 

Field Detail

zn

protected int zn
char-number in zapfdingbats

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-number
symbolIndent - indent

ZapfDingbatsList

public ZapfDingbatsList(int zn,
                        int symbolIndent,
                        BaseColor zapfDingbatColor)
Creates a ZapfDingbatList with a colored symbol

Parameters:
zn - a char-number
symbolIndent - indent
zapfDingbatColor - 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 an Element to the List.

Specified by:
add in interface TextElementArray
Overrides:
add in class List
Parameters:
o - the object to add.
Returns:
true if adding the object succeeded


Copyright © 2013. All Rights Reserved.