Class SVGGraphRenderer
- java.lang.Object
-
- hudson.plugins.project_inheritance.util.svg.renderers.SVGGraphRenderer
-
- Direct Known Subclasses:
SVGTreeRenderer
public abstract class SVGGraphRenderer extends Object
This is the abstract base class for rendering an SVG graph out of the basicGraph
description.- Author:
- mhschroe
-
-
Constructor Summary
Constructors Constructor Description SVGGraphRenderer(Graph<SVGNode> graph, int width, int height)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Collection<SVGPrimitive>
getElements()
This method returns all drawables defined by the current graph.Document
render()
This method renders the graph as a full SVG 1.1 document.
-
-
-
Method Detail
-
render
public Document render()
This method renders the graph as a full SVG 1.1 document.Override this method if you don't want the default SVG 1.1 header
- Returns:
- an SVG 1.1 document containing the graph.
-
getElements
public abstract Collection<SVGPrimitive> getElements()
This method returns all drawables defined by the current graph.- Returns:
- the
SVGPrimitive
s that should go below the <svg> root.
-
-