|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pedviz.algorithms.sugiyama.RandomSplitter
public class RandomSplitter
This class can be used as a Splitter for the SugiyamaLayout class. It splits the specified graph in two at random walls.
Constructor Summary | |
---|---|
RandomSplitter()
Creates a new RandomSplitter object. |
Method Summary | |
---|---|
void |
afterSplit(Graph graph)
This method will be run after the graph was split. |
void |
beforeSplit(Graph graph)
This method will be run before the graph will be split. |
int |
getWall(Graph graph,
Node node,
int index)
Returns the id of the wall for the given node. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RandomSplitter()
Method Detail |
---|
public void beforeSplit(Graph graph)
Splitter
beforeSplit
in interface Splitter
graph
- the Graph objectpublic void afterSplit(Graph graph)
Splitter
afterSplit
in interface Splitter
graph
- the Graph objectpublic int getWall(Graph graph, Node node, int index)
Splitter
getWall
in interface Splitter
graph
- the Graph objectnode
- the Node objectindex
- the index of the Node in the given Graph
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |