|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object prefuse.data.tuple.AbstractTupleSet prefuse.data.tuple.CompositeTupleSet prefuse.data.Graph prefuse.visual.VisualGraph
public class VisualGraph
A visual abstraction of a graph data structure. NodeItem and EdgeItem tuples
provide the visual representations for the nodes and edges of the graph.
VisualGraphs should not be created directly, they are created automatically
by adding data to a Visualization, for example by using the
Visualization.addGraph(String, Graph)
method.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class prefuse.data.Graph |
---|
Graph.Listener |
Field Summary |
---|
Fields inherited from class prefuse.data.Graph |
---|
DEFAULT_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, UNDIRECTED |
Fields inherited from interface prefuse.data.tuple.TupleSet |
---|
EMPTY_ARRAY |
Constructor Summary | |
---|---|
VisualGraph(VisualTable nodes,
VisualTable edges,
boolean directed,
java.lang.String nodeKey,
java.lang.String sourceKey,
java.lang.String targetKey)
Create a new VisualGraph |
Method Summary | |
---|---|
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 |
Methods inherited from class prefuse.data.tuple.CompositeTupleSet |
---|
addColumn, addColumn, addColumn, addColumn, addSet, addTuple, containsSet, containsTuple, getSet, getTupleCount, hasSet, isAddColumnSupported, removeAllSets, removeSet, setNames, sets, setTuple |
Methods inherited from class prefuse.data.tuple.AbstractTupleSet |
---|
addColumns, addPropertyChangeListener, addPropertyChangeListener, addTupleSetListener, fireTupleEvent, fireTupleEvent, fireTupleEvent, getClientProperty, putClientProperty, removePropertyChangeListener, removePropertyChangeListener, removeTupleSetListener, tuples |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface prefuse.data.tuple.TupleSet |
---|
addColumn, addColumn, addColumn, addColumn, addColumns, addPropertyChangeListener, addPropertyChangeListener, addTuple, addTupleSetListener, clear, containsTuple, getClientProperty, getTupleCount, isAddColumnSupported, putClientProperty, removePropertyChangeListener, removePropertyChangeListener, removeTuple, removeTupleSetListener, setTuple, tuples, tuples, tuples |
Constructor Detail |
---|
public 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 keysMethod Detail |
---|
protected 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 int getNodeIndex(int key)
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)
group
- the data group name to use
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |