1 17 18 19 20 package org.apache.fop.render.mif; 21 22 public class RulingElement extends RefElement { 23 24 public RulingElement() { 25 super("RulingCatalog"); 26 } 27 28 public MIFElement lookupElement(Object key) { 29 if (key == null) { 30 MIFElement rul = new MIFElement("Ruling"); 31 MIFElement prop = new MIFElement("RulingTag"); 32 prop.setValue("`Default'"); 33 rul.addElement(prop); 34 prop = new MIFElement("RulingPenWidth"); 35 prop.setValue("1"); 36 rul.addElement(prop); 37 prop = new MIFElement("RulingPen"); 38 prop.setValue("0"); 39 rul.addElement(prop); 40 prop = new MIFElement("RulingLines"); 41 prop.setValue("1"); 42 rul.addElement(prop); 43 44 addElement(rul); 45 rul.finish(true); 46 return rul; 47 } 48 return null; 49 } 50 } 51 52 | Popular Tags |