|
||||||||||
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.force.graph.FParticle
de.cau.cs.kieler.klay.force.graph.FNode
public class FNode
A node in the force graph.
Field Summary | |
---|---|
int |
id
the identifier number. |
Constructor Summary | |
---|---|
FNode()
Create a new node. |
|
FNode(String label)
Create a new node with given label. |
|
FNode(String label,
FNode theParent)
Create a new node with given parent node. |
Method Summary | |
---|---|
List<FNode> |
getChildren()
Returns the list of children, creating it if necessary. |
int |
getDepth()
Returns the depth of this node in the compound hierarchy. |
KVector |
getDisplacement()
Returns the displacement vector. |
String |
getLabel()
Returns the label text of this node. |
FNode |
getParent()
Returns the parent node. |
boolean |
isCompound()
Returns whether this node is a compound node. |
String |
toString()
|
Methods inherited from class de.cau.cs.kieler.klay.force.graph.FParticle |
---|
getPosition, getRadius, getSize |
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 |
Field Detail |
---|
public int id
Constructor Detail |
---|
public FNode()
public FNode(String label)
label
- the label textpublic FNode(String label, FNode theParent)
label
- the label texttheParent
- the parent nodeMethod Detail |
---|
public String toString()
toString
in class Object
public final KVector getDisplacement()
public boolean isCompound()
public String getLabel()
public FNode getParent()
public List<FNode> getChildren()
public int getDepth()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |