Modifier and Type | Class and Description |
---|---|
static class |
HierarchicalLayout.Node
A node in d3j's tree layout, see d3 docs on
node.
|
Modifier | Constructor and Description |
---|---|
protected |
HierarchicalLayout() |
Modifier and Type | Method and Description |
---|---|
Array<Link> |
links(Array<HierarchicalLayout.Node> n)
Given the specified array of nodes, such as those returned by nodes,
returns an array of objects representing the from parent to child for
each node.
|
Array<HierarchicalLayout.Node> |
nodes(HierarchicalLayout.Node r)
Runs the tree layout, returning the array of nodes associated with the
specified root node.
|
public final Array<HierarchicalLayout.Node> nodes(HierarchicalLayout.Node r)
HierarchicalLayout.Node
, or null for the root.
root
- of the the treeHierarchicalLayout.Node
in the tree stemming from rootpublic final Array<Link> links(Array<HierarchicalLayout.Node> n)
Diagonal
shape
generator.array
- of nodes in treeLink
connecting nodesCopyright © 2015 gwt-d3. All rights reserved.