|
||||||||||
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.LayeredGraph
public class LayeredGraph
This structure manages the layering of an acyclic directed graph.
Constructor Summary | |
---|---|
LayeredGraph(KNode theparentNode)
Creates a new layered graph. |
Method Summary | |
---|---|
void |
applyLayout()
Applies the layout of this layered graph to the contained layout graph. |
void |
createConnections(KSlimGraph kGraph)
Creates connections between layer elements and creates long edges. |
float |
getCrosswiseDim()
Returns the crosswise dimension, that is the height for horizontal layout or the width for vertical layout. |
PortConstraints |
getExternalPortConstraints()
Returns the port constraints for external ports. |
LayerElement |
getLayerElement(Object obj)
Gets the layer element that holds the given object. |
List<Layer> |
getLayers()
Gets the list of layers. |
Direction |
getLayoutDirection()
Gets the layout direction: RIGHT or DOWN. |
float |
getLengthwiseDim()
Returns the lengthwise dimension, that is the width for horizontal layout or the height for vertical layout. |
List<LinearSegment> |
getLinearSegments()
Gets the list of linear segments of this layered graph. |
KNode |
getParentNode()
Gets the parent layout node. |
KPoint |
getPosition()
Gets the current layout position of this layered graph. |
void |
putBack(KGraphElement obj,
int height,
KSlimNode kNode)
Put the given object into a layer with specified height. |
void |
putFront(KGraphElement obj,
int rank,
KSlimNode kNode)
Put the given object into a layer with specified rank. |
void |
setCrosswiseDim(float thecrosswiseDim)
Sets the crosswise dimension, that is the height for horizontal layout or the width for vertical layout. |
void |
setLengthwiseDim(float thelengthwiseDim)
Sets the lengthwise dimension, that is the width for horizontal layout or the height for vertical layout. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LayeredGraph(KNode theparentNode)
theparentNode
- parent layout nodeMethod Detail |
---|
public String toString()
toString
in class Object
public void putFront(KGraphElement obj, int rank, KSlimNode kNode)
obj
- object to putrank
- rank of the objectkNode
- the corresponding node in the acyclic KIELER graphpublic void putBack(KGraphElement obj, int height, KSlimNode kNode)
obj
- object to putheight
- height of the objectkNode
- the corresponding node in the acyclic KIELER graphpublic LayerElement getLayerElement(Object obj)
obj
- the object
public List<Layer> getLayers()
public KNode getParentNode()
public void createConnections(KSlimGraph kGraph)
kGraph
- acyclic version of the graphpublic void applyLayout()
public Direction getLayoutDirection()
public PortConstraints getExternalPortConstraints()
public List<LinearSegment> getLinearSegments()
public KPoint getPosition()
public void setCrosswiseDim(float thecrosswiseDim)
thecrosswiseDim
- the crosswise dimension to setpublic float getCrosswiseDim()
public void setLengthwiseDim(float thelengthwiseDim)
thelengthwiseDim
- the lengthwise dimension to setpublic float getLengthwiseDim()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |