|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfovis.utils.ChangeManager
infovis.column.AbstractColumn
infovis.column.ColumnProxy
infovis.table.TableProxy
infovis.visualization.DefaultVisualization
infovis.graph.visualization.GraphVisualization
public abstract class GraphVisualization
Abstract base class for Graph Visualizations.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface infovis.visualization.magicLens.LabeledComponent |
|---|
LabeledComponent.LabeledItem |
| Field Summary |
|---|
| Fields inherited from class infovis.column.AbstractColumn |
|---|
MODIFIED_ALL, MODIFIED_NONE |
| Fields inherited from interface infovis.Graph |
|---|
GRAPH_TYPE, GRAPH_TYPE_DIRECTED, GRAPH_TYPE_UNDIRECTED, NIL |
| Fields inherited from interface infovis.metadata.Constants |
|---|
CONTRIBUTOR, COVERAGE, CREATOR, DATE, DESCRITION, FORMAT, IDENTIFIER, LANGUAGE, PUBLISHER, RELATION, RIGHTS, SOURCE, SUBJECT, TITLE, TYPE |
| Fields inherited from interface infovis.Visualization |
|---|
PROPERTY_INTERACTOR, PROPERTY_ITEM_RENDERER, PROPERTY_LAYOUT, PROPERTY_ORIENTATION, PROPERTY_PARENT, PROPERTY_PERMUTATION, PROPERTY_RULERS, VC_DESCRIPTOR_PROPERTY_PREFIX, VISUAL_ALPHA, VISUAL_COLOR, VISUAL_FILTER, VISUAL_HOVER, VISUAL_LABEL, VISUAL_SELECTION, VISUAL_SHAPE, VISUAL_SIZE |
| Fields inherited from interface infovis.visualization.Orientable |
|---|
DIRECTION, NAME, ORIENTATION_CENTER, ORIENTATION_EAST, ORIENTATION_INVALID, ORIENTATION_NORTH, ORIENTATION_SOUTH, ORIENTATION_WEST, SQRT2 |
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface infovis.Table |
|---|
FILTER_COLUMN, INTERNAL_PREFIX, NIL, SELECTION_COLUMN |
| Constructor Summary | |
|---|---|
GraphVisualization(Graph graph)
|
|
GraphVisualization(Graph graph,
Table table)
Creates a new GraphVisualization object. |
|
| Method Summary | |
|---|---|
int |
addEdge(int v1,
int v2)
Adds a new edge between two vertices. |
void |
addGraphChangedListener(GraphChangedListener l)
Attaches a GraphChangedListener to the graph. |
int |
addVertex()
Adds a new "in" vertex to the graph. |
RowIterator |
edgeIterator()
Returns an iterator over the edges of the graph. |
RowIterator |
edgeIterator(int vertex)
Returns an iterator over all the edges (incoming and outgoing) of a specified vertex. |
int |
findEdge(int v1,
int v2)
Returns an edge between two specified vertices. |
int |
getDegree(int vertex)
Returns the degree of the vertex, which is inDegree + outDegree. |
int |
getEdge(int v1,
int v2)
Returns an edge between two specified vertices. |
int |
getEdgesCount()
Returns the number of edges in the graph. |
DynamicTable |
getEdgeTable()
Returns the edgeTable. |
int |
getFirstVertex(int edge)
Returns the first vertex of the specified edge. |
Graph |
getGraph()
Returns the graph. |
int |
getInDegree(int vertex)
Returns the in degree of the vertex, which is simply the number of incoming edges at the vertex. |
int |
getInEdgeAt(int vertex,
int index)
Returns the incoming edge of a specified vertrex at a specified index. |
int |
getOtherVertex(int edge,
int vertex)
Given a specified edge and a vertex on one side of this edge, returns the vertex on the other side. |
int |
getOutDegree(int vertex)
Returns the out degree of the vertex, which is simply the number of outgoing edges of the vertex. |
int |
getOutEdgeAt(int vertex,
int index)
Returns the outgoing edge of a specified vertex at a specified index. |
int |
getSecondVertex(int edge)
Returns the second vertex of an edge. |
DynamicTable |
getVertexTable()
Returns the vertex Table. |
int |
getVerticesCount()
Returns the number of vertices in the graph. |
void |
graphChanged(GraphChangedEvent e)
|
RowIterator |
inEdgeIterator(int vertex)
Returns an iterator over the incoming edges of specified vertex. |
boolean |
isDirected()
Returns true if the graph is directed. |
RowIterator |
outEdgeIterator(int vertex)
Returns an iterator over the outgoing edges of a specified vertex. |
void |
removeEdge(int edge)
Removes the specified edge. |
void |
removeGraphChangedListener(GraphChangedListener l)
Removes a GraphChangedListener from the graph. |
void |
removeVertex(int vertex)
Removes the specified vertex from the graph. |
void |
setDirected(boolean directed)
Sets the graph to directed or undirected. |
RowIterator |
vertexIterator()
Returns an iterator over the vertices of the graph. |
| Methods inherited from class infovis.table.TableProxy |
|---|
addColumn, addTableModelListener, clear, getColumn, getColumnAt, getColumnClass, getColumnCount, getColumnName, getLastRow, getValueAt, indexOf, indexOf, isCellEditable, isRowValid, removeColumn, removeTableModelListener, setColumnAt, setValueAt |
| Methods inherited from class infovis.column.ColumnProxy |
|---|
addValue, addValueOrNull, capacity, compare, ensureCapacity, getClientProperty, getFormat, getMaxIndex, getMetadata, getMinIndex, getName, getValueAt, getValueClass, hasUndefinedValue, isEmpty, isInternal, isValueUndefined, setFormat, setName, setSize, setValueAt, setValueOrNullAt, setValueUndefined, size |
| Methods inherited from class infovis.column.AbstractColumn |
|---|
addChangeListener, compareValues, computeValueMap, computeValueMap, equalObj, equals, getLastModifiedRow, toString |
| Methods inherited from class infovis.utils.ChangeManager |
|---|
disableNotify, enableNotify, getModCount, removeChangeListener |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface infovis.Graph |
|---|
clear, getName, setName |
| Methods inherited from interface infovis.Metadata |
|---|
getClientProperty, getMetadata |
| Methods inherited from interface infovis.Column |
|---|
addChangeListener, addValue, addValueOrNull, capacity, disableNotify, enableNotify, ensureCapacity, getFormat, getMaxIndex, getMinIndex, getName, getValueAt, getValueClass, hasUndefinedValue, isEmpty, isInternal, isValueUndefined, removeChangeListener, setFormat, setName, setSize, setValueAt, setValueOrNullAt, setValueUndefined, size |
| Methods inherited from interface cern.colt.function.IntComparator |
|---|
compare, equals |
| Constructor Detail |
|---|
public GraphVisualization(Graph graph,
Table table)
table - the Table.to pass down.graph - the Graphpublic GraphVisualization(Graph graph)
| Method Detail |
|---|
public Graph getGraph()
public int addEdge(int v1,
int v2)
Graph
addEdge in interface Graphv1 - the first vertex.v2 - the second vertex.
public int addVertex()
Graph
addVertex in interface Graphpublic RowIterator edgeIterator(int vertex)
Graph
edgeIterator in interface Graphvertex - the vertex.
public RowIterator outEdgeIterator(int vertex)
Graph
outEdgeIterator in interface Graphvertex - the vertex.
public int findEdge(int v1,
int v2)
Graph
findEdge in interface Graphv1 - the first vertex.v2 - the second vertex.
public int getOutDegree(int vertex)
Graph
getOutDegree in interface Graphvertex - the vertex.
public int getDegree(int vertex)
Graph
getDegree in interface Graphvertex - the vertex.
public int getEdge(int v1,
int v2)
Graph
getEdge in interface Graphv1 - the first vertex.v2 - the second vertex.
public int getEdgesCount()
Graph
getEdgesCount in interface Graphpublic DynamicTable getEdgeTable()
Graph
getEdgeTable in interface Graphpublic int getFirstVertex(int edge)
Graph
getFirstVertex in interface Graphedge - the edge.
public int getSecondVertex(int edge)
Graph
getSecondVertex in interface Graphedge - the edge.
public int getOtherVertex(int edge,
int vertex)
Graph
getOtherVertex in interface Graphedge - the edgevertex - the vertex
public int getVerticesCount()
Graph
getVerticesCount in interface Graphpublic boolean isDirected()
Graph
isDirected in interface Graphpublic void setDirected(boolean directed)
Graph
setDirected in interface Graphdirected - boolean specifying whether the graph is directed or not.public DynamicTable getVertexTable()
Graph
getVertexTable in interface Graphpublic RowIterator vertexIterator()
Graph
vertexIterator in interface Graphpublic RowIterator edgeIterator()
Graph
edgeIterator in interface Graph
public int getOutEdgeAt(int vertex,
int index)
Graph
getOutEdgeAt in interface Graphvertex - the in vertex of the requested edgeindex - the index of the edge in the edge list of the vertex
public int getInEdgeAt(int vertex,
int index)
Graph
getInEdgeAt in interface Graphvertex - the out vertex of the requested edgeindex - the index of the edge in the edge list of the vertex
public void removeEdge(int edge)
Graph
removeEdge in interface Graphedge - the edge to removepublic void removeGraphChangedListener(GraphChangedListener l)
Graph
removeGraphChangedListener in interface Graphl - the GraphChangedListener to removepublic void addGraphChangedListener(GraphChangedListener l)
Graph
addGraphChangedListener in interface Graphl - the GraphChangedListener to notify when the graph structure changes.public int getInDegree(int vertex)
Graph
getInDegree in interface Graphvertex - the vertex.
public RowIterator inEdgeIterator(int vertex)
Graph
inEdgeIterator in interface Graphvertex - the vertex
public void removeVertex(int vertex)
Graph
removeVertex in interface Graphvertex - the vertex to removepublic void graphChanged(GraphChangedEvent e)
graphChanged in interface GraphChangedListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||