|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectprefuse.data.tuple.TableTuple<TableNode>
prefuse.data.tuple.TableNode
public class TableNode
Node implementation that reads Node data from a backing node table.
Field Summary | |
---|---|
protected Graph<TableTuple<?>,TableNode,TableEdge> |
m_graph
The backing graph. |
Fields inherited from class prefuse.data.tuple.TableTuple |
---|
m_row, m_table |
Constructor Summary | |
---|---|
TableNode()
|
Method Summary | |
---|---|
java.util.List<TableEdge> |
childEdges()
Get an iterator over the edges from this node to its tree children. |
java.util.List<TableNode> |
children()
Get an iterator over this node's tree children. |
java.util.List<TableEdge> |
edges()
Get an iterator over all incident edges, those for which this node is either the source or the target. |
int |
getDegree()
Get the degree of the node, the number of edges for which this node is either the source or the target. |
int |
getDepth()
Get the tree depth of this node. |
Graph<?,TableNode,TableEdge> |
getGraph()
|
int |
getInDegree()
Get the in-degree of the node, the number of edges for which this node is the target. |
TableNode |
getNextSibling()
Get this node's next tree sibling. |
int |
getOutDegree()
Get the out-degree of the node, the number of edges for which this node is the source. |
TableNode |
getParent()
Get the parent node of this node in a tree structure. |
TableEdge |
getParentEdge()
Get the edge between this node and its parent node in a tree structure. |
TableNode |
getPreviousSibling()
Get this node's previous tree sibling. |
java.util.List<TableEdge> |
inEdges()
Get an iterator over all incoming edges, those for which this node is the target. |
void |
init(Table<?> table,
Graph<?,?,?> graph,
int row)
Initialize a new Node backed by a node table. |
java.util.List<TableNode> |
inNeighbors()
Get an iterator over all adjacent nodes connected to this node by an incoming edge (i.e., all nodes that "point" at this one). |
java.util.List<TableNode> |
neighbors()
Get an iterator over all nodes connected to this node. |
java.util.List<TableEdge> |
outEdges()
Get an iterator over all outgoing edges, those for which this node is the source. |
java.util.List<TableNode> |
outNeighbors()
Get an iterator over all adjacent nodes connected to this node by an outgoing edge (i.e., all nodes "pointed" to by this one). |
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, invalidate, 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, invalidate, isValid, revertToDefault, set, set, setBoolean, setBoolean, setDate, setDate, setDouble, setDouble, setFloat, setFloat, setInt, setInt, setLong, setLong, setString, setString |
Field Detail |
---|
protected Graph<TableTuple<?>,TableNode,TableEdge> m_graph
Constructor Detail |
---|
public TableNode()
Method Detail |
---|
public void init(Table<?> table, Graph<?,?,?> graph, int row)
init
in interface Tuple<TableNode>
init
in class TableTuple<TableNode>
table
- the node Tablegraph
- the backing Graphrow
- the row in the node table to which this Node instance
corresponds.public Graph<?,TableNode,TableEdge> getGraph()
public int getInDegree()
Node
getInDegree
in interface Node<TableNode,TableEdge>
Node.getInDegree()
public int getOutDegree()
Node
getOutDegree
in interface Node<TableNode,TableEdge>
Node.getOutDegree()
public int getDegree()
Node
getDegree
in interface Node<TableNode,TableEdge>
Node.getDegree()
public java.util.List<TableEdge> inEdges()
Node
inEdges
in interface Node<TableNode,TableEdge>
Node.inEdges()
public java.util.List<TableEdge> outEdges()
Node
outEdges
in interface Node<TableNode,TableEdge>
Node.outEdges()
public java.util.List<TableEdge> edges()
Node
edges
in interface Node<TableNode,TableEdge>
Node.edges()
public java.util.List<TableNode> inNeighbors()
Node
inNeighbors
in interface Node<TableNode,TableEdge>
Node.inNeighbors()
public java.util.List<TableNode> outNeighbors()
Node
outNeighbors
in interface Node<TableNode,TableEdge>
Node.outNeighbors()
public java.util.List<TableNode> neighbors()
Node
neighbors
in interface Node<TableNode,TableEdge>
Node.neighbors()
public TableNode getParent()
Node
getParent
in interface Node<TableNode,TableEdge>
Node.getParent()
public TableEdge getParentEdge()
Node
getParentEdge
in interface Node<TableNode,TableEdge>
Node.getParentEdge()
public TableNode getPreviousSibling()
Node
getPreviousSibling
in interface Node<TableNode,TableEdge>
Node.getPreviousSibling()
public TableNode getNextSibling()
Node
getNextSibling
in interface Node<TableNode,TableEdge>
Node.getNextSibling()
public java.util.List<TableNode> children()
Node
children
in interface Node<TableNode,TableEdge>
Node.children()
public java.util.List<TableEdge> childEdges()
Node
childEdges
in interface Node<TableNode,TableEdge>
Node.childEdges()
public int getDepth()
Node
getDepth
in interface Node<TableNode,TableEdge>
Node.getDepth()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |