public class VisualTree extends Tree implements VisualTupleSet
Visualization.addTree(String, Tree)
method.Graph.Listener
CHILDINDEX, DEFAULT_SOURCE_KEY, DEFAULT_TARGET_KEY, m_root, TREE_LINKS_SCHEMA
DEFAULT_NODE_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, UNDIRECTED
EMPTY_ARRAY
Constructor and Description |
---|
VisualTree(VisualTable nodes,
VisualTable edges,
java.lang.String nodeKey,
java.lang.String sourceKey,
java.lang.String targetKey)
Create a new VisualTree.
|
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
|
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
|
addChild, addChild, addChildEdge, addChildEdge, addRoot, addRootRow, childEdgeRows, childEdges, children, createLinkTable, getChild, getChildCount, getChildIndex, getChildIndex, getChildRow, getDepth, getFirstChild, getFirstChildRow, getLastChild, getLastChildRow, getNextSibling, getNextSiblingRow, getParent, getParent, getParentEdge, getParentEdge, getPreviousSibling, getPreviousSiblingRow, getRoot, getRootRow, getSpanningTree, getSpanningTree, isValidTree, removeChild, removeChild, removeChildEdge, removeChildEdge, updateDegrees
addEdge, addEdge, addGraphModelListener, addLink, addNode, addNodeRow, clear, clearEdges, clearSpanningTree, 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, 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, updateNodeData
addColumn, addColumn, addColumn, addColumn, addSet, addTuple, containsSet, containsTuple, getSet, getTupleCount, hasSet, isAddColumnSupported, removeAllSets, removeSet, setNames, sets, setTuple
addColumns, addPropertyChangeListener, addPropertyChangeListener, addTupleSetListener, fireTupleEvent, fireTupleEvent, fireTupleEvent, getClientProperty, putClientProperty, removePropertyChangeListener, removePropertyChangeListener, removeTupleSetListener, tuples
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addColumn, addColumn, addColumn, addColumn, addColumns, addPropertyChangeListener, addPropertyChangeListener, addTuple, addTupleSetListener, clear, containsTuple, getClientProperty, getTupleCount, isAddColumnSupported, putClientProperty, removePropertyChangeListener, removePropertyChangeListener, removeTuple, removeTupleSetListener, setTuple, tuples, tuples, tuples
public VisualTree(VisualTable nodes, VisualTable edges, java.lang.String nodeKey, java.lang.String sourceKey, java.lang.String targetKey)
nodes
- the visual node tableedges
- the visual edge tablenodeKey
- 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 (parent) node keystargetKey
- the edge table field storing target (child) node keysprotected void fireGraphEvent(Table t, int first, int last, int col, int type)
fireGraphEvent
in class Graph
t
- 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 Visualization getVisualization()
VisualTupleSet
getVisualization
in interface VisualTupleSet
VisualTupleSet.getVisualization()
public void setVisualization(Visualization vis)
vis
- the visualization to setpublic java.lang.String getGroup()
getGroup
in interface VisualTupleSet
public void setGroup(java.lang.String group)
Copyright ? 2013 Regents of the University of California