|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.klay.layered.p3order.NodeGroup
public class NodeGroup
A NodeGroup contains one or more nodes. NodeGroups are used to model sets of nodes that are placed next to each other. They are also used to model a compound node enveloping all child nodes. A NodeGroup contains methods to calculate its barycenter value, to merge with another vertex and to generally do cool stuff.
Constructor Summary | |
---|---|
NodeGroup(LNode node,
Random graphRandom)
Constructs a new instance containing the given node. |
|
NodeGroup(NodeGroup nodeGroup1,
NodeGroup nodeGroup2,
Random graphRandom)
Constructs a new vertex that is the concatenation of the given two vertices. |
Method Summary | |
---|---|
int |
compareTo(NodeGroup other)
Compares this with another Object. |
float |
getBarycenter()
Gets the barycenter value of the NodeGroup. |
int |
getDegree()
Gets the degree of the NodeGroup. |
int |
getIncomingConstraintsCount()
Gets the incomingConstraintsCount of the NodeGroup. |
List<LNode> |
getNodes()
Gets the nodes-list. |
List<NodeGroup> |
getOutgoingConstraints()
Gets the list of outgoing constraints. |
float |
getSummedWeight()
Gets the summedWeight of the NodeGroup. |
void |
setBarycenter(float value)
Sets barycenter to the given value. |
void |
setDegree(int value)
Sets the degree of the NodeGroup to the given value. |
void |
setIncomingConstraintsCount(int value)
Sets the incomingConstraintsCount to the given value. |
void |
setSummedWeight(float value)
Sets the summedWeight to the given value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NodeGroup(LNode node, Random graphRandom)
node
- the node the vertex should contain.graphRandom
- The random number generator of the graph to be laid out.public NodeGroup(NodeGroup nodeGroup1, NodeGroup nodeGroup2, Random graphRandom)
nodeGroup1
- the first vertex.nodeGroup2
- the second vertex.graphRandom
- The random number generator of the graph to be laid out.Method Detail |
---|
public int getIncomingConstraintsCount()
public void setIncomingConstraintsCount(int value)
value
- The value the incomingConstraintsCount is set to.public List<NodeGroup> getOutgoingConstraints()
public List<LNode> getNodes()
public float getBarycenter()
public void setBarycenter(float value)
value
- value the barycenter is to be set to.public float getSummedWeight()
public void setSummedWeight(float value)
value
- The value summedWeight is to be set to.public int getDegree()
public void setDegree(int value)
value
- The value the degree is to be set to.public int compareTo(NodeGroup other)
compareTo
in interface Comparable<NodeGroup>
other
- the object to compare with
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |