1 17 18 19 20 package org.apache.fop.visual; 21 22 import java.io.File ; 23 24 import javax.xml.transform.Templates ; 25 import javax.xml.transform.TransformerFactory ; 26 27 30 public class ProducerContext { 31 32 private TransformerFactory tFactory; 33 private Templates templates; 34 private int targetResolution; 35 private File targetDir; 36 37 40 public TransformerFactory getTransformerFactory() { 41 if (tFactory == null) { 42 tFactory = TransformerFactory.newInstance(); 43 } 44 return tFactory; 45 } 46 47 50 public int getTargetResolution() { 51 return targetResolution; 52 } 53 54 58 public void setTargetResolution(int resolution) { 59 this.targetResolution = resolution; 60 } 61 62 65 public Templates getTemplates() { 66 return templates; 67 } 68 69 73 public void setTemplates(Templates templates) { 74 this.templates = templates; 75 } 76 77 80 public File getTargetDir() { 81 return targetDir; 82 } 83 84 88 public void setTargetDir(File targetDir) { 89 this.targetDir = targetDir; 90 } 91 } 92 | Popular Tags |