infovis.graph.visualization
Class NodeLinkGraphVisualization

java.lang.Object
  extended by infovis.utils.ChangeManager
      extended by infovis.column.AbstractColumn
          extended by infovis.column.ColumnProxy
              extended by infovis.table.TableProxy
                  extended by infovis.visualization.DefaultVisualization
                      extended by infovis.graph.visualization.GraphVisualization
                          extended by infovis.graph.visualization.NodeLinkGraphVisualization
All Implemented Interfaces:
IntComparator, Column, Graph, GraphChangedListener, Metadata, Constants, Table, RowComparator, Visualization, LabeledComponent, NodeAccessor, Orientable, Serializable, EventListener, ChangeListener, TableModelListener, SwingConstants, TableModel

public class NodeLinkGraphVisualization
extends GraphVisualization
implements NodeAccessor

Node-Link Visualization for graphs.

Version:
$Revision: 1.33 $
Author:
Jean-Daniel Fekete
See Also:
Serialized Form
InfoVis factory arguments:
VisualizationFactory "Graph Node Link" infovis.Graph

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
NodeLinkGraphVisualization(Graph graph)
           
NodeLinkGraphVisualization(Table table)
           
 
Method Summary
 int getEndNode(int link)
           
 Layout getLayout()
          Returns the layout object managed by this visualization or null if the visualization computes the layout by itself.
 ShapeColumn getLinkShapes()
           
 Dimension getPreferredSize()
          Returns the preferred dimension of the Visualization or null if the Visualization can adapt to any dimension.
 int getStartNode(int link)
           
 Visualization getVisualization(int index)
          Returns a dependent Visualization used by this Visualization in its stack.
 void invalidate()
          Invalidates the contents of the Visualization.
 boolean isPaintingLinks()
           
 void paintItems(Graphics2D graphics, Rectangle2D bounds)
          Method for filtering and painting the items.
 void setFisheye(Fisheye fisheye)
          Sets the fisheyes.
 void setLayout(NodeLinkGraphLayout layout)
           
 void setPaintingLinks(boolean b)
           
 void validateShapes(Rectangle2D bounds)
          Checks whether the shapes should be recomputed and call updateShapes then.
 
Methods inherited from class infovis.graph.visualization.GraphVisualization
addEdge, addGraphChangedListener, addVertex, edgeIterator, edgeIterator, findEdge, getDegree, getEdge, getEdgesCount, getEdgeTable, getFirstVertex, getGraph, getInDegree, getInEdgeAt, getOtherVertex, getOutDegree, getOutEdgeAt, getSecondVertex, getVertexTable, getVerticesCount, graphChanged, inEdgeIterator, isDirected, outEdgeIterator, removeEdge, removeGraphChangedListener, removeVertex, setDirected, vertexIterator
 
Methods inherited from class infovis.visualization.DefaultVisualization
addPropertyChangeListener, addPropertyChangeListener, computeMinMax, computeMinMaxFiltered, computeShapes, createLabelItem, dispose, findRectAt, findVisualization, firePropertyChange, firePropertyChange, firePropertyChange, fireVisualColumnDescriptorChanged, freeRectAt, getBounds, getComponent, getFilter, getFisheye, getInteractor, getItemRenderer, getItemRenderer, getItemRenderer, getOrientation, getParent, getPermutation, getRectAt, getRowAtIndex, getRowCount, getRowIndex, getRulerTable, getSelection, getShapeAt, getShapeBoundsAt, getShapes, getTable, getVisualColumn, getVisualColumnDescriptor, getVisualColumnIterator, getVisualizationBounds, invalidate, isFiltered, isInvalidateColumn, isInvalidated, iterator, paint, paintItem, paintVisualizations, pickAll, pickAll, pickItem, pickTop, pickTop, print, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, reverseIterator, setInteractor, setItemRenderer, setOrientation, setParent, setPermutation, setShapeAt, setVisualColumn, stateChanged, tableChanged
 
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

NodeLinkGraphVisualization

public NodeLinkGraphVisualization(Graph graph)

NodeLinkGraphVisualization

public NodeLinkGraphVisualization(Table table)
Method Detail

paintItems

public void paintItems(Graphics2D graphics,
                       Rectangle2D bounds)
Description copied from class: DefaultVisualization
Method for filtering and painting the items.

Overrides:
paintItems in class DefaultVisualization
Parameters:
graphics - the graphics.
bounds - the bounding box of the visualization.

invalidate

public void invalidate()
Description copied from class: DefaultVisualization
Invalidates the contents of the Visualization.

Specified by:
invalidate in interface Visualization
Overrides:
invalidate in class DefaultVisualization

setFisheye

public void setFisheye(Fisheye fisheye)
Description copied from class: DefaultVisualization
Sets the fisheyes.

Overrides:
setFisheye in class DefaultVisualization
Parameters:
fisheye - The fisheyes to set

getVisualization

public Visualization getVisualization(int index)
Description copied from class: DefaultVisualization
Returns a dependent Visualization used by this Visualization in its stack.

Specified by:
getVisualization in interface Visualization
Overrides:
getVisualization in class DefaultVisualization
Parameters:
index - the index of the dependent visualization
Returns:
a dependent Visualization used by this Visualization in its stack or NIL if none exist at this index.

validateShapes

public void validateShapes(Rectangle2D bounds)
Description copied from class: DefaultVisualization
Checks whether the shapes should be recomputed and call updateShapes then.

Specified by:
validateShapes in interface Visualization
Overrides:
validateShapes in class DefaultVisualization
Parameters:
bounds - the Visualization bounds.

getLayout

public Layout getLayout()
Description copied from class: DefaultVisualization
Returns the layout object managed by this visualization or null if the visualization computes the layout by itself.

Overrides:
getLayout in class DefaultVisualization
Returns:
the layout object managed by this visualization or null.

setLayout

public void setLayout(NodeLinkGraphLayout layout)

getPreferredSize

public Dimension getPreferredSize()
Description copied from class: DefaultVisualization
Returns the preferred dimension of the Visualization or null if the Visualization can adapt to any dimension.

Specified by:
getPreferredSize in interface Visualization
Overrides:
getPreferredSize in class DefaultVisualization
Returns:
the preferred dimension of the Visualization or null if the Visualization can adapt to any dimension.

isPaintingLinks

public boolean isPaintingLinks()

setPaintingLinks

public void setPaintingLinks(boolean b)

getLinkShapes

public ShapeColumn getLinkShapes()
Returns:
Returns the linkShapes.

getStartNode

public int getStartNode(int link)
Specified by:
getStartNode in interface NodeAccessor

getEndNode

public int getEndNode(int link)
Specified by:
getEndNode in interface NodeAccessor


Copyright 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.