infovis.visualization
Class LinkVisualization

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.visualization.StrokingVisualization
                          extended by infovis.visualization.LinkVisualization
All Implemented Interfaces:
IntComparator, Column, Metadata, Constants, Table, RowComparator, Visualization, Layout, LabeledComponent, Orientable, Serializable, EventListener, ChangeListener, TableModelListener, SwingConstants, TableModel

public class LinkVisualization
extends StrokingVisualization
implements Layout

Class LinkVisualization

Version:
$Revision: 1.15 $
Author:
Jean-Daniel Fekete
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface infovis.visualization.magicLens.LabeledComponent
LabeledComponent.LabeledItem
 
Field Summary
static String LINK_SHAPER
           
static String NODE_SHAPER
           
 
Fields inherited from class infovis.visualization.StrokingVisualization
PROPERTY_SHOW_EXCENTRIC
 
Fields inherited from class infovis.column.AbstractColumn
MODIFIED_ALL, MODIFIED_NONE
 
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
 
Fields inherited from interface infovis.metadata.Constants
CONTRIBUTOR, COVERAGE, CREATOR, DATE, DESCRITION, FORMAT, IDENTIFIER, LANGUAGE, PUBLISHER, RELATION, RIGHTS, SOURCE, SUBJECT, TITLE, TYPE
 
Constructor Summary
LinkVisualization(Table table, ItemRenderer ir, Visualization nodeVisualization, NodeAccessor accessor)
           
LinkVisualization(Table table, Visualization nodeVisualization, NodeAccessor accessor)
           
 
Method Summary
 void computeShapes(Rectangle2D bounds, Visualization vis)
          Computes the layout.
 LabeledComponent.LabeledItem createLabelItem(int row)
          Returns the LabeledComponent.LabeledItem for a specified row.
 void dispose()
          Releases all the resources used by the visualization.
 Layout getLayout()
          Returns the layout object managed by this visualization or null if the visualization computes the layout by itself.
 LinkShaper getLinkShaper()
           
 String getName()
          Returns the column name.
 NodeAccessor getNodeAccessor()
           
 Visualization getNodeVisualization()
           
 short getOrientation()
          Returns the orientation.
 Dimension getPreferredSize(Visualization vis)
          Computes and return the preferred size for this layout and this visualization.
 void invalidate()
          Invalidates the contents of the Visualization.
 void invalidate(Visualization vis)
          Invalidate the cached state of the layout.
 boolean isNodeSelected(int node)
           
 boolean isShowingSelected()
           
 void setLinkShaper(LinkShaper shaper)
           
 void setNodeAccessor(NodeAccessor accessor)
           
 void setNodeVisualization(Visualization visualization)
           
 void setOrientation(short orientation)
          Sets the orientation.
 void setShowingSelected(boolean b)
           
 void stateChanged(ChangeEvent e)
          
 
Methods inherited from class infovis.visualization.StrokingVisualization
isShowExcentric, pickAll, setShowExcentric
 
Methods inherited from class infovis.visualization.DefaultVisualization
addPropertyChangeListener, addPropertyChangeListener, computeMinMax, computeMinMaxFiltered, computeShapes, findRectAt, findVisualization, firePropertyChange, firePropertyChange, firePropertyChange, fireVisualColumnDescriptorChanged, freeRectAt, getBounds, getComponent, getFilter, getFisheye, getInteractor, getItemRenderer, getItemRenderer, getItemRenderer, getParent, getPermutation, getPreferredSize, getRectAt, getRowAtIndex, getRowCount, getRowIndex, getRulerTable, getSelection, getShapeAt, getShapeBoundsAt, getShapes, getTable, getVisualColumn, getVisualColumnDescriptor, getVisualColumnIterator, getVisualization, getVisualizationBounds, invalidate, isFiltered, isInvalidateColumn, isInvalidated, iterator, paint, paintItem, paintItems, paintVisualizations, pickAll, pickItem, pickTop, pickTop, print, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, reverseIterator, setFisheye, setInteractor, setItemRenderer, setParent, setPermutation, setShapeAt, setVisualColumn, tableChanged, validateShapes
 
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, 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.Column
addChangeListener, addValue, addValueOrNull, capacity, disableNotify, enableNotify, ensureCapacity, getFormat, getMaxIndex, getMinIndex, getValueAt, getValueClass, hasUndefinedValue, isEmpty, isInternal, isValueUndefined, removeChangeListener, setFormat, setName, setSize, setValueAt, setValueOrNullAt, setValueUndefined, size
 
Methods inherited from interface infovis.Metadata
getClientProperty, getMetadata
 
Methods inherited from interface cern.colt.function.IntComparator
compare, equals
 

Field Detail

LINK_SHAPER

public static final String LINK_SHAPER
See Also:
Constant Field Values

NODE_SHAPER

public static final String NODE_SHAPER
See Also:
Constant Field Values
Constructor Detail

LinkVisualization

public LinkVisualization(Table table,
                         ItemRenderer ir,
                         Visualization nodeVisualization,
                         NodeAccessor accessor)

LinkVisualization

public LinkVisualization(Table table,
                         Visualization nodeVisualization,
                         NodeAccessor accessor)
Method Detail

dispose

public void dispose()
Description copied from class: DefaultVisualization
Releases all the resources used by the visualization.

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

getLayout

public Layout getLayout()
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.

getName

public String getName()
Returns the column name.

Specified by:
getName in interface Column
Specified by:
getName in interface Layout
Overrides:
getName in class ColumnProxy
Returns:
the column name.

invalidate

public void invalidate(Visualization vis)
Invalidate the cached state of the layout.

Call this method from the visualization when it gets invalidated.

Specified by:
invalidate in interface Layout
Parameters:
vis - the visualization.

isNodeSelected

public boolean isNodeSelected(int node)

computeShapes

public void computeShapes(Rectangle2D bounds,
                          Visualization vis)
Description copied from interface: Layout
Computes the layout.

Specified by:
computeShapes in interface Layout
Parameters:
bounds - the allocated bounds of the visualization.
vis - the visualization.

getPreferredSize

public Dimension getPreferredSize(Visualization vis)
Computes and return the preferred size for this layout and this visualization.

Specified by:
getPreferredSize in interface Layout
Parameters:
vis - the visualization
Returns:
the preferred size for this layout and this visualization.

createLabelItem

public LabeledComponent.LabeledItem createLabelItem(int row)
Description copied from class: DefaultVisualization
Returns the LabeledComponent.LabeledItem for a specified row.

Specified by:
createLabelItem in interface Visualization
Overrides:
createLabelItem in class StrokingVisualization
Parameters:
row - the row
Returns:
the LabeledComponent.LabeledItem for a specified row.

stateChanged

public void stateChanged(ChangeEvent e)
Description copied from class: DefaultVisualization

Specified by:
stateChanged in interface ChangeListener
Overrides:
stateChanged in class DefaultVisualization

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

getOrientation

public short getOrientation()
Description copied from class: DefaultVisualization
Returns the orientation.

Specified by:
getOrientation in interface Orientable
Overrides:
getOrientation in class DefaultVisualization
Returns:
short

setOrientation

public void setOrientation(short orientation)
Description copied from class: DefaultVisualization
Sets the orientation.

Specified by:
setOrientation in interface Orientable
Overrides:
setOrientation in class DefaultVisualization
Parameters:
orientation - The orientation to set

getNodeVisualization

public Visualization getNodeVisualization()

setNodeVisualization

public void setNodeVisualization(Visualization visualization)

getNodeAccessor

public NodeAccessor getNodeAccessor()

setNodeAccessor

public void setNodeAccessor(NodeAccessor accessor)

getLinkShaper

public LinkShaper getLinkShaper()

setLinkShaper

public void setLinkShaper(LinkShaper shaper)

isShowingSelected

public boolean isShowingSelected()

setShowingSelected

public void setShowingSelected(boolean b)


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