Class SVGTreeRenderer


  • public class SVGTreeRenderer
    extends SVGGraphRenderer
    This class renders an SVG-Graph as if it were a simple tree.

    That means it draws Nodes in layers. The first layer is filled with all leaves of the graph (or if there are none; the elements with the least amount of outbound connections).

    The subsequent layers are filled with the direct children of each element. As soon as all the layers are filled, the final graph is drawn with the correct spacing between the elements in the layer, so that each parent is centered above all its children in the layers below.

    Author:
    Martin Schroeder