|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NodeData
Contains all extended data related to a node, including access to its attributes.
The node data is unique for a node, accross all views. Nodes can be get
from this node data by using getRootNode()
or
getNode(viewId)
.
Node
Method Summary | ||
---|---|---|
Attributes |
getAttributes()
Returns node's attributes. |
|
java.lang.String |
getId()
Returns the string identifier of this node. |
|
java.lang.String |
getLabel()
Returns the node label, or null if none has been set. |
|
|
getLayoutData()
Returns the layout data object associated to this node. |
|
Node |
getNode(int viewId)
Returns the node this node data belongs in the view that has viewId has identifier or null if the view
cannot be found. |
|
Node |
getRootNode()
Returns the node this node data belongs in the main view. |
|
boolean |
isFixed()
Returns true if this node is fixed. |
|
void |
setFixed(boolean fixed)
Sets this node fixed attribute. |
|
void |
setLabel(java.lang.String label)
Sets this node label. |
|
void |
setLayoutData(LayoutData layoutData)
Sets the layout data of this node. |
Methods inherited from interface org.gephi.graph.api.Renderable |
---|
alpha, b, g, getModel, getRadius, getSize, getTextData, r, setAlpha, setB, setColor, setG, setModel, setR, setSize, setX, setY, setZ |
Methods inherited from interface org.gephi.graph.api.Spatial |
---|
x, y, z |
Method Detail |
---|
Node getRootNode()
getNode(int)
.
GraphView
Node getNode(int viewId)
viewId
has identifier or null
if the view
cannot be found.
viewId
- the view identifier
GraphView
java.lang.String getLabel()
null
if none has been set.
null
void setLabel(java.lang.String label)
label
- the label that is to be set as this node labeljava.lang.String getId()
Node.getId()
which is set by the system.
Use Graph.getNode(String)
to find nodes from this id.
If no identifier has been set, returns the system integer identifier.
<T extends LayoutData> T getLayoutData()
T
- must inherit from LayoutData
null
void setLayoutData(LayoutData layoutData)
layoutData
- the layout data that is to be set for this nodeboolean isFixed()
true
if this node is fixed. A node can be fixed
to block it's position during layout.
true
if this node is fixed, false
otherwisevoid setFixed(boolean fixed)
fixed
- the fixed attribute valueAttributes getAttributes()
|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |