1 25 package classycle; 26 27 import classycle.renderer.AtomicVertexRenderer; 28 import classycle.renderer.TemplateBasedClassRenderer; 29 import classycle.renderer.XMLAtomicVertexRenderer; 30 31 32 38 public class XMLPackageRenderer extends XMLAtomicVertexRenderer 39 { 40 protected String getElement() 41 { 42 return "package"; 43 } 44 45 protected String getRefElement() 46 { 47 return "packageRef"; 48 } 49 50 protected AtomicVertexRenderer getVertexRenderer() 51 { 52 return new TemplateBasedClassRenderer(" <" + getElement() 53 + " name=\"{0}\" size=\"{2}\" usedBy=\"{4}\" usesInternal=\"{5}\"" 54 + " usesExternal=\"{6}\" layer=\"{7}\" cycle=\"{8}\">\n"); 55 } 56 57 } | Popular Tags |