|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.klodd.hierarchical.structures.Layer
public class Layer
A single Layer used in a layered graph.
Field Summary | |
---|---|
static int |
UNDEF_HEIGHT
value to use if the height is undefined. |
static int |
UNDEF_RANK
value to use if the rank is undefined. |
Constructor Summary | |
---|---|
Layer(int therank,
int theheight,
LayeredGraph thelayeredGraph)
Creates a new layer with given rank and height. |
Method Summary | |
---|---|
void |
calcElemRanks()
Calculates the element rank of each element in this layer. |
float |
getCrosswiseDim()
Returns the crosswiseDim. |
List<LayerElement> |
getElements()
Gets the elements of this layer. |
int |
getHeight()
Returns the height. |
LayeredGraph |
getLayeredGraph()
Gets the layered graph. |
float |
getLengthwiseDim()
Returns the lengthwiseDim. |
float |
getLengthwisePos()
Returns the lengthwisePos. |
Layer |
getNext()
Returns the next. |
int |
getRank()
Returns the rank. |
void |
layoutElements(float layerPos,
float minDist)
Sets the lengthwise position of this layer and all layer elements. |
LayerElement |
put(KGraphElement obj,
KSlimNode kNode)
Puts an object into this layer. |
void |
setCrosswiseDim(float thecrosswiseDim)
Sets the crosswiseDim. |
void |
setHeight(int theheight)
Sets the height. |
void |
setLengthwiseDim(float thelengthwiseDim)
Sets the lengthwiseDim. |
void |
setLengthwisePos(float thelengthwisePos)
Sets the lengthwisePos. |
void |
setNext(Layer thenext)
Sets the next. |
void |
setRank(int therank)
Sets the rank. |
void |
sortByPorts(boolean newRanks)
Sorts the elements in this layer and assigns them new rank values based on the ranks of contained ports. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int UNDEF_RANK
public static final int UNDEF_HEIGHT
Constructor Detail |
---|
public Layer(int therank, int theheight, LayeredGraph thelayeredGraph)
therank
- the rank, may be UNDEF_RANKtheheight
- the height, may be UNDEF_HEIGHTthelayeredGraph
- layered graph in which the layer is createdMethod Detail |
---|
public String toString()
toString
in class Object
public LayerElement put(KGraphElement obj, KSlimNode kNode)
obj
- the element objectkNode
- the corresponding node in the acyclic KIELER graph
public void layoutElements(float layerPos, float minDist)
layerPos
- starting lengthwise position of this layerminDist
- minimal distance between nodes and connectionspublic List<LayerElement> getElements()
public LayeredGraph getLayeredGraph()
public void sortByPorts(boolean newRanks)
rank == 0
or height == 0
.
newRanks
- if true new port ranks are determined for the contained portspublic void calcElemRanks()
public void setRank(int therank)
therank
- the rank to setpublic int getRank()
public void setHeight(int theheight)
theheight
- the height to setpublic int getHeight()
public void setLengthwisePos(float thelengthwisePos)
thelengthwisePos
- the lengthwisePos to setpublic float getLengthwisePos()
public void setCrosswiseDim(float thecrosswiseDim)
thecrosswiseDim
- the crosswiseDim to setpublic float getCrosswiseDim()
public void setLengthwiseDim(float thelengthwiseDim)
thelengthwiseDim
- the lengthwiseDim to setpublic float getLengthwiseDim()
public void setNext(Layer thenext)
thenext
- the next to setpublic Layer getNext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |