public class VisualGraph extends Graph implements VisualTupleSet
Visualization.addGraph(String, Graph) method.Graph.ListenerDEFAULT_NODE_KEY, DEFAULT_SOURCE_KEY, DEFAULT_TARGET_KEY, EDGES, INDEGREE, INEDGES, INLINKS, LINKS_SCHEMA, m_directed, m_edgeTuples, m_links, m_longKey, m_nidx, m_nkey, m_nodeTuples, m_skey, m_spanning, m_tkey, NODES, OUTDEGREE, OUTEDGES, OUTLINKS, UNDIRECTEDEMPTY_ARRAY| Constructor and Description |
|---|
VisualGraph(VisualTable nodes,
VisualTable edges,
boolean directed,
java.lang.String nodeKey,
java.lang.String sourceKey,
java.lang.String targetKey)
Create a new VisualGraph
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
fireGraphEvent(Table t,
int first,
int last,
int col,
int type)
Fire a graph event.
|
java.lang.String |
getGroup()
Get the visualization data group name for this graph
|
int |
getNodeIndex(int key)
Get the node row index value for the given key.
|
Visualization |
getVisualization()
Get the Visualization associated with this VisualTupleSet.
|
void |
setGroup(java.lang.String group)
Set the visualization data group name for this graph
|
void |
setVisualization(Visualization vis)
Set the visualization associated with this VisualGraph
|
addEdge, addEdge, addGraphModelListener, addLink, addNode, addNodeRow, clear, clearEdges, clearSpanningTree, createLinkTable, dispose, edgeCheck, edgeRows, edgeRows, edgeRows, edges, edges, getAdjacentNode, getAdjacentNode, getDegree, getDegree, getEdge, getEdge, getEdge, getEdgeCount, getEdges, getEdgeSourceField, getEdgeTable, getEdgeTargetField, getInDegree, getInDegree, getKey, getNode, getNodeCount, getNodeFromKey, getNodeIndex, getNodeKeyField, getNodes, getNodeTable, getOutDegree, getOutDegree, getSourceNode, getSourceNode, getSpanningTree, getSpanningTree, getTargetNode, getTargetNode, inEdgeRows, inEdges, init, initLinkTable, inNeighbors, isDirected, neighbors, nodeCheck, nodeRows, nodes, outEdgeRows, outEdges, outNeighbors, remLink, removeAllGraphModelListeners, removeEdge, removeEdge, removeGraphModelListener, removeNode, removeNode, removeTuple, setEdgeTable, setTupleManagers, tuples, tuples, updateDegrees, updateDegrees, updateNodeDataaddColumn, addColumn, addColumn, addColumn, addSet, addTuple, containsSet, containsTuple, getSet, getTupleCount, hasSet, isAddColumnSupported, removeAllSets, removeSet, setNames, sets, setTupleaddColumns, addPropertyChangeListener, addPropertyChangeListener, addTupleSetListener, fireTupleEvent, fireTupleEvent, fireTupleEvent, getClientProperty, putClientProperty, removePropertyChangeListener, removePropertyChangeListener, removeTupleSetListener, tuplesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddColumn, addColumn, addColumn, addColumn, addColumns, addPropertyChangeListener, addPropertyChangeListener, addTuple, addTupleSetListener, clear, containsTuple, getClientProperty, getTupleCount, isAddColumnSupported, putClientProperty, removePropertyChangeListener, removePropertyChangeListener, removeTuple, removeTupleSetListener, setTuple, tuples, tuples, tuplespublic VisualGraph(VisualTable nodes, VisualTable edges, boolean directed, java.lang.String nodeKey, java.lang.String sourceKey, java.lang.String targetKey)
nodes - the visual node tableedges - the visual edge tabledirected - indicates if graph edges are directed or undirectednodeKey - the node table field by which to index the nodes.
This value can be null, indicating that just the row indices should be
used.sourceKey - the edge table field storing source node keystargetKey - the edge table field storing target node keysprotected void fireGraphEvent(Table t, int first, int last, int col, int type)
fireGraphEvent in class Grapht - the backing table where the change occurred (either a
node table or an edge table)first - the first modified table rowlast - the last (inclusive) modified table rowcol - the number of the column modified, or
EventConstants.ALL_COLUMNS for operations
affecting all columnstype - the type of modification, one of
EventConstants.INSERT,
EventConstants.DELETE, or
EventConstants.UPDATE.Graph.fireGraphEvent(prefuse.data.Table, int, int, int, int)public int getNodeIndex(int key)
public Visualization getVisualization()
VisualTupleSetgetVisualization in interface VisualTupleSetVisualTupleSet.getVisualization()public void setVisualization(Visualization vis)
vis - the visualization to setpublic java.lang.String getGroup()
getGroup in interface VisualTupleSetpublic void setGroup(java.lang.String group)
group - the data group name to use