View Javadoc

1   package net.sf.quarrel.dot;
2   
3   import net.sf.quarrel.uml.StructuredElement;
4   import net.sf.quarrel.uml.UmlInterface;
5   
6   /***
7    * Responsible for the specializations needed to render an Interface in DOT
8    * notation.  Most of the work is handled by StructuredElementRenderer.
9    */
10  public class InterfaceRenderer
11          extends StructuredElementRenderer {
12  
13      /***
14       * Creates a new instance.
15       */
16      public InterfaceRenderer() {
17      }
18  
19      /***
20      * {@inheritDoc}
21      */
22      public String getDotString(Object subject) {
23          UmlInterface toRender = (UmlInterface) subject;
24          return renderElement(toRender);
25      }
26  
27      /***
28      * {@inheritDoc}
29      */ 
30      protected String renderNameCompartment(StructuredElement se) {
31          return "//<//<interface//>//>//n" + se.getName();
32      }
33  
34  }