Home » pdfbox-1.1.0-src » org.apache.pdfbox.pdmodel.interactive.annotation » [javadoc | source]
org.apache.pdfbox.pdmodel.interactive.annotation
public class: PDAppearanceDictionary [javadoc | source]
java.lang.Object
   org.apache.pdfbox.pdmodel.interactive.annotation.PDAppearanceDictionary

All Implemented Interfaces:
    COSObjectable

This class represents a PDF /AP entry the appearance dictionary.
Constructor:
 public PDAppearanceDictionary() 
 public PDAppearanceDictionary(COSDictionary dict) 
    Constructor.
    Parameters:
    dict - The annotations dictionary.
Method from org.apache.pdfbox.pdmodel.interactive.annotation.PDAppearanceDictionary Summary:
getCOSObject,   getDictionary,   getDownAppearance,   getNormalAppearance,   getRolloverAppearance,   setDownAppearance,   setNormalAppearance,   setNormalAppearance,   setRolloverAppearance
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.pdfbox.pdmodel.interactive.annotation.PDAppearanceDictionary Detail:
 public COSBase getCOSObject() 
    returns the dictionary.
 public COSDictionary getDictionary() 
    returns the dictionary.
 public Map getDownAppearance() 
    This will return a list of appearances. In the case where there is only one appearance the map will contain one entry whose key is the string "default". If there is no rollover appearance then the normal appearance will be returned. Which means that this method will never return null.
 public Map getNormalAppearance() 
    This will return a list of appearances. In the case where there is only one appearance the map will contain one entry whose key is the string "default".
 public Map getRolloverAppearance() 
    This will return a list of appearances. In the case where there is only one appearance the map will contain one entry whose key is the string "default". If there is no rollover appearance then the normal appearance will be returned. Which means that this method will never return null.
 public  void setDownAppearance(Map appearanceMap) 
    This will set a list of appearances. If you would like to set the single appearance then you should use the key "default", and when the PDF is written back to the filesystem then there will only be one stream.
 public  void setNormalAppearance(Map appearanceMap) 
    This will set a list of appearances. If you would like to set the single appearance then you should use the key "default", and when the PDF is written back to the filesystem then there will only be one stream.
 public  void setNormalAppearance(PDAppearanceStream ap) 
    This will set the normal appearance when there is only one appearance to be shown.
 public  void setRolloverAppearance(Map appearanceMap) 
    This will set a list of appearances. If you would like to set the single appearance then you should use the key "default", and when the PDF is written back to the filesystem then there will only be one stream.