Package org.abego.treelayout.demo.svg
Class SVGForTextInBoxTree
java.lang.Object
org.abego.treelayout.demo.svg.SVGForTextInBoxTree
Generates SVG for a given
TreeLayout
of TextInBox
nodes.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
generateBox
(StringBuilder result, TextInBox textInBox) private String
private void
generateEdges
(StringBuilder result, TextInBox parent) private Rectangle2D.Double
getBoundsOfNode
(TextInBox node) getChildren
(TextInBox parent) getSVG()
private TreeForTreeLayout<TextInBox>
getTree()
-
Field Details
-
treeLayout
-
svgText
-
-
Constructor Details
-
SVGForTextInBoxTree
- Parameters:
treeLayout
- theTreeLayout
to be rendered as SVG
-
-
Method Details
-
getTree
-
getChildren
-
getBoundsOfNode
-
generateEdges
-
generateBox
-
generateDiagram
-
getSVG
- Returns:
- the rendered tree, described in SVG format.
-