|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.core.properties.MapPropertyHolder
de.cau.cs.kieler.klay.layered.graph.LGraphElement
de.cau.cs.kieler.klay.layered.graph.Layer
public class Layer
A layer in a layered graph. A layer contains a list of nodes, which are drawn in one column.
Field Summary |
---|
Fields inherited from class de.cau.cs.kieler.klay.layered.graph.LGraphElement |
---|
id |
Constructor Summary | |
---|---|
Layer(LayeredGraph graph)
Creates a layer for the given layered graph. |
Method Summary | |
---|---|
LayeredGraph |
getGraph()
Returns the layered graph that owns this layer. |
int |
getIndex()
Returns the index of this layer in the global list of layers. |
List<LNode> |
getNodes()
Returns the list of nodes. |
KVector |
getSize()
Returns the size of the layer, that is the height of the stacked nodes and the maximal width of the nodes. |
Iterator<LNode> |
iterator()
Returns an iterator over the contained nodes. |
void |
placeNodes(double xpos)
Determines a horizontal placement for all nodes of this layer. |
String |
toString()
|
Methods inherited from class de.cau.cs.kieler.klay.layered.graph.LGraphElement |
---|
compareTo |
Methods inherited from class de.cau.cs.kieler.core.properties.MapPropertyHolder |
---|
checkProperties, copyProperties, getAllProperties, getProperty, getProperty, setProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Layer(LayeredGraph graph)
graph
- the owning layered graphMethod Detail |
---|
public String toString()
toString
in class Object
public KVector getSize()
public List<LNode> getNodes()
public Iterator<LNode> iterator()
iterator
in interface Iterable<LNode>
public LayeredGraph getGraph()
public int getIndex()
public void placeNodes(double xpos)
xpos
- horizontal offset for layer placement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |