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 of LIST which use zapfdingbats-letters.
See Also:
  • Field Details

    • zn

      protected int zn
      char-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-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 Details

    • 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
    • cloneShallow

      public List cloneShallow()
      Overrides:
      cloneShallow in class List