View Javadoc

1   /*
2    * Created by ratt at Jul 15, 2007 on 3:22:19 PM
3    */
4   package net.sf.quarrel.dot;
5   
6   import net.sf.quarrel.uml.Element;
7   
8   public class StubElementRenderer implements DotRenderer {
9   
10  
11      public String getDotString(Object subject) {
12  
13          final Element element = (Element) subject;
14          final String name = element.getName();
15  
16          StringBuffer buffer = new StringBuffer();
17  
18          buffer.append(name);
19          buffer.append(" [shape=record,label=\"{");
20          buffer.append(name);
21          buffer.append("}\"];");
22  
23          // "JustABox [shape=record,label=\"{JustABox}\"];";
24  
25          return buffer.toString();
26  
27      }
28  }