|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.layout.hierarchic.TopologicalLayerer
public class TopologicalLayerer
This class implements the first phase of the Sugiyama algorithm. It uses topological sorting to assign layers to the nodes.
| Field Summary | |
|---|---|
static byte |
DOWN_SHIFT
Ranking policy specifier. |
static byte |
NO_RERANKING
Ranking policy specifier. |
static byte |
TIGHT_TREE
Ranking policy specifier. |
| Constructor Summary | |
|---|---|
TopologicalLayerer()
|
|
| Method Summary | |
|---|---|
int |
assignNodeLayer(LayoutGraph g,
NodeMap layer,
EdgeList reversedEdges)
This method assigns the nodes in the graph to layers. |
byte |
getRankingPolicy()
Returns the currently active ranking policy within this layerer. |
void |
setRankingPolicy(byte p)
Sets the (re)ranking policy used within this layerer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final byte NO_RERANKING
public static final byte DOWN_SHIFT
public static final byte TIGHT_TREE
| Constructor Detail |
|---|
public TopologicalLayerer()
| Method Detail |
|---|
public void setRankingPolicy(byte p)
NO_RERANKING is set.
p - one of NO_RERANKING, DOWN_SHIFT and
TIGHT_TREE.public byte getRankingPolicy()
setRankingPolicy(byte)
public int assignNodeLayer(LayoutGraph g,
NodeMap layer,
EdgeList reversedEdges)
assignNodeLayer in interface Layererg - the graph for which the layers are determined.layer - here the layers are storedreversedEdges - here the edges are stored which had been reversed.
|
© Copyright 2000-2008, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||