public interface EdgeData extends Renderable, Attributable
getAttributes()| Modifier and Type | Method and Description |
|---|---|
Attributes |
getAttributes()
Gets the access to the attributes, all the custom data related to this
object.
|
Edge |
getEdge()
Returns the edge this edge data belongs.
|
String |
getId()
Returns the string identifier of this edge.
|
String |
getLabel()
Returns the edge label, or
null if none has been set. |
<T extends LayoutData> |
getLayoutData()
Returns the layout data object associated to this edge.
|
NodeData |
getSource()
Returns the edge source node data.
|
NodeData |
getTarget()
Returns the edge target node data.
|
void |
setLabel(String label)
Sets this edge label.
|
void |
setLayoutData(LayoutData layoutData)
Sets the layout data of this edge.
|
Edge getEdge()
NodeData getSource()
getEdge().getSource().getNodeData().NodeData getTarget()
getEdge().getSource().getNodeData().String getId()
Edge.getId() which is set by the system.
Use Graph.getEdge(String) to find edges from this id.
If no identifier has been set, returns the system integer identifier.
String getLabel()
null if none has been set.nullvoid setLabel(String label)
label - the label that is to be set as this edge label<T extends LayoutData> T getLayoutData()
T - must inherit from LayoutDatanullvoid setLayoutData(LayoutData layoutData)
layoutData - the layout data that is to be set for this edgeAttributes getAttributes()
getAttributes in interface AttributableCopyright © 2007-2012 Gephi Consortium. All Rights Reserved.