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 voidgenerateBox(StringBuilder result, TextInBox textInBox) private Stringprivate voidgenerateEdges(StringBuilder result, TextInBox parent) private Rectangle2D.DoublegetBoundsOfNode(TextInBox node) getChildren(TextInBox parent) getSVG()private TreeForTreeLayout<TextInBox> getTree()
-
Field Details
-
treeLayout
-
svgText
-
-
Constructor Details
-
SVGForTextInBoxTree
- Parameters:
treeLayout- theTreeLayoutto be rendered as SVG
-
-
Method Details
-
getTree
-
getChildren
-
getBoundsOfNode
-
generateEdges
-
generateBox
-
generateDiagram
-
getSVG
- Returns:
- the rendered tree, described in SVG format.
-