Class SVGTreeRenderer
- java.lang.Object
-
- hudson.plugins.project_inheritance.util.svg.renderers.SVGGraphRenderer
-
- hudson.plugins.project_inheritance.util.svg.renderers.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
-
-
Field Summary
-
Fields inherited from class hudson.plugins.project_inheritance.util.svg.renderers.SVGGraphRenderer
graph, height, width
-
-
Constructor Summary
Constructors Constructor Description SVGTreeRenderer(Graph<SVGNode> graph, int width, int height)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<SVGPrimitive>
getElements()
This method returns all drawables defined by the current graph.-
Methods inherited from class hudson.plugins.project_inheritance.util.svg.renderers.SVGGraphRenderer
render
-
-
-
-
Method Detail
-
getElements
public Collection<SVGPrimitive> getElements()
Description copied from class:SVGGraphRenderer
This method returns all drawables defined by the current graph.- Specified by:
getElements
in classSVGGraphRenderer
- Returns:
- the
SVGPrimitive
s that should go below the <svg> root.
-
-