V
- E
- public class HierarchyLayout<V,E> extends Object implements edu.uci.ics.jung.algorithms.layout.Layout<V,E>
TreeLayout
, which only
works if 2 parents do not have the same child (see TreeUtils.getRoots(Forest)
).Constructor and Description |
---|
HierarchyLayout(edu.uci.ics.jung.graph.Graph<V,E> g,
int distx,
int disty)
Creates an instance for the specified graph, X distance, and Y distance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
buildTree() |
protected void |
buildTree(V v,
int x) |
edu.uci.ics.jung.graph.Graph<V,E> |
getGraph() |
Dimension |
getSize() |
void |
initialize() |
boolean |
isLocked(V v) |
void |
lock(V v,
boolean state) |
void |
reset() |
void |
setGraph(edu.uci.ics.jung.graph.Graph<V,E> graph) |
void |
setInitializer(org.apache.commons.collections15.Transformer<V,Point2D> initializer) |
void |
setLocation(V v,
Point2D location) |
void |
setSize(Dimension d) |
Point2D |
transform(V v) |
protected void buildTree()
protected void buildTree(V v, int x)
public Dimension getSize()
public void initialize()
public boolean isLocked(V v)
public void lock(V v, boolean state)
public void reset()
public void setSize(Dimension d)
public void setInitializer(org.apache.commons.collections15.Transformer<V,Point2D> initializer)
Copyright © 2017. All rights reserved.