|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object prefuse.data.tuple.TableTuple prefuse.data.tuple.TableEdge
public class TableEdge
Edge implementation that reads Edge data from a backing edge table.
Field Summary | |
---|---|
protected Graph |
m_graph
The backing graph. |
Fields inherited from class prefuse.data.tuple.TableTuple |
---|
m_row, m_table |
Constructor Summary | |
---|---|
TableEdge()
|
Method Summary | |
---|---|
Node |
getAdjacentNode(Node n)
Given a Node upon which this Edge is incident, the opposite incident Node is returned. |
Graph |
getGraph()
Returns the graph of which this Edge is a member. |
Node |
getSourceNode()
Returns the first, or source, node upon which this Edge is incident. |
Node |
getTargetNode()
Returns the second, or target, node upon which this Edge is incident. |
protected void |
init(Table table,
Graph graph,
int row)
Initialize a new Edge backed by an edge table. |
boolean |
isDirected()
Indicates if this edge is directed or undirected. |
Methods inherited from class prefuse.data.tuple.TableTuple |
---|
canGet, canGetBoolean, canGetDate, canGetDouble, canGetFloat, canGetInt, canGetLong, canGetString, canSet, canSetBoolean, canSetDate, canSetDouble, canSetFloat, canSetInt, canSetLong, canSetString, get, get, getBoolean, getBoolean, getColumnCount, getColumnIndex, getColumnName, getColumnType, getColumnType, getDate, getDate, getDefault, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getRow, getSchema, getString, getString, getTable, isValid, revertToDefault, set, set, setBoolean, setBoolean, setDate, setDate, setDouble, setDouble, setFloat, setFloat, setInt, setInt, setLong, setLong, setString, setString, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface prefuse.data.Tuple |
---|
canGet, canGetBoolean, canGetDate, canGetDouble, canGetFloat, canGetInt, canGetLong, canGetString, canSet, canSetBoolean, canSetDate, canSetDouble, canSetFloat, canSetInt, canSetLong, canSetString, get, get, getBoolean, getBoolean, getColumnCount, getColumnIndex, getColumnName, getColumnType, getColumnType, getDate, getDate, getDefault, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getRow, getSchema, getString, getString, getTable, isValid, revertToDefault, set, set, setBoolean, setBoolean, setDate, setDate, setDouble, setDouble, setFloat, setFloat, setInt, setInt, setLong, setLong, setString, setString |
Field Detail |
---|
protected Graph m_graph
Constructor Detail |
---|
public TableEdge()
Method Detail |
---|
protected void init(Table table, Graph graph, int row)
init
in class TableTuple
table
- the edge Tablegraph
- the backing Graphrow
- the row in the edge table to which this Node instance
corresponds.public Graph getGraph()
Edge
getGraph
in interface Edge
Edge.getGraph()
public boolean isDirected()
Edge
isDirected
in interface Edge
Edge.isDirected()
public Node getSourceNode()
Edge
getSourceNode
in interface Edge
Edge.getSourceNode()
public Node getTargetNode()
Edge
getTargetNode
in interface Edge
Edge.getTargetNode()
public Node getAdjacentNode(Node n)
Edge
getAdjacentNode
in interface Edge
n
- a Node upon which this Edge is incident
Edge.getAdjacentNode(prefuse.data.Node)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |