/** * Get the annotations appearance dictionary. * * <p> * This will get the annotations appearance dictionary. If this is not * existent an empty appearance dictionary will be created. * * @return the annotations appearance dictionary */ PDAppearanceDictionary getAppearance() { PDAppearanceDictionary appearanceDictionary = annotation.getAppearance(); if (appearanceDictionary == null) { appearanceDictionary = new PDAppearanceDictionary(); annotation.setAppearance(appearanceDictionary); } return appearanceDictionary; }
/** * Get the annotations appearance dictionary. * * <p> * This will get the annotations appearance dictionary. If this is not * existent an empty appearance dictionary will be created. * * @return the annotations appearance dictionary */ PDAppearanceDictionary getAppearance() { PDAppearanceDictionary appearanceDictionary = annotation.getAppearance(); if (appearanceDictionary == null) { appearanceDictionary = new PDAppearanceDictionary(); annotation.setAppearance(appearanceDictionary); } return appearanceDictionary; }
appearanceDictionary.setRolloverAppearance(rollover); appearanceDictionary.setDownAppearance(down); annotation.setAppearance(appearanceDictionary);