1 17 18 19 20 package org.apache.fop.pdf; 21 22 import java.util.Map ; 23 import java.util.Iterator ; 24 25 30 public class TransitionDictionary extends PDFObject { 31 32 private Map dictionaryValues; 33 34 39 public TransitionDictionary(Map values) { 40 dictionaryValues = values; 41 } 42 43 49 public String getDictionary() { 50 StringBuffer sb = new StringBuffer (); 51 sb.append("/Type /Trans\n"); 52 for (Iterator iter = dictionaryValues.keySet().iterator(); iter.hasNext();) { 53 Object key = iter.next(); 54 sb.append(key + " " + dictionaryValues.get(key) + "\n"); 55 } 56 return sb.toString(); 57 } 58 59 64 public byte[] toPDF() { 65 return new byte[0]; 66 } 67 } 68 69 | Popular Tags |