org.kite9.diagram.builders.formats.hierarchy
Class HierarchyBuilder

java.lang.Object
  extended by org.kite9.diagram.builders.AbstractBuilder
      extended by org.kite9.diagram.builders.formats.hierarchy.HierarchyBuilder

public class HierarchyBuilder
extends AbstractBuilder

This class is used to quickly generate a class hierarchy, provided the top class it will do the rest.

Author:
moffatr

Field Summary
protected  Set<Class<?>> classes
           
protected  Object container
           
protected  boolean sorted
           
protected  List<List<Class<?>>> sortedClasses
           
 
Fields inherited from class org.kite9.diagram.builders.AbstractBuilder
a, model, nf
 
Constructor Summary
HierarchyBuilder(ProjectModel model, Aliaser a, Object container)
           
 
Method Summary
 void add(boolean traverseDownwards, Class<?>... classesToAdd)
           
 void showClasses(Format containerFormat, Format classFormat)
          Adds the classes to the diagram, as well as level-groups, so that classes with the hierarchical depth are shown on the same level.
 void showInheritance(Format classFormat)
          Shows the EXTENDS/IMPLEMENTS relationships between the classes.
 
Methods inherited from class org.kite9.diagram.builders.AbstractBuilder
createNewSubjectNounPart, createNoun, createTies, getCurrentClassLoader, getNounFactory, getUnderlyingSimpleNoun, packagesOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classes

protected Set<Class<?>> classes

sortedClasses

protected List<List<Class<?>>> sortedClasses

container

protected Object container

sorted

protected boolean sorted
Constructor Detail

HierarchyBuilder

public HierarchyBuilder(ProjectModel model,
                        Aliaser a,
                        Object container)
Method Detail

add

public void add(boolean traverseDownwards,
                Class<?>... classesToAdd)

showClasses

public void showClasses(Format containerFormat,
                        Format classFormat)
Adds the classes to the diagram, as well as level-groups, so that classes with the hierarchical depth are shown on the same level.


showInheritance

public void showInheritance(Format classFormat)
Shows the EXTENDS/IMPLEMENTS relationships between the classes. Will add any classes that are not already on the diagram.



Copyright © 2011. All Rights Reserved.