infovis.visualization.inter
Class VisualSelectionInteractor

java.lang.Object
  extended by infovis.visualization.VisualizationProxy
      extended by infovis.visualization.inter.BasicVisualizationInteractor
          extended by infovis.visualization.inter.VisualSelectionInteractor
All Implemented Interfaces:
Visualization, LabeledComponent, Orientable, VisualizationInteractor, KeyListener, MouseListener, MouseMotionListener, MouseWheelListener, EventListener, SwingConstants
Direct Known Subclasses:
TreeInteractor

public class VisualSelectionInteractor
extends BasicVisualizationInteractor

Interactor class for the VisualSelection item renderer.

Version:
$Revision: 1.5 $
Author:
Jean-Daniel Fekete
InfoVis factory arguments:
RendererInteractorFactory infovis.visualization.render.VisualSelection

Nested Class Summary
 
Nested classes/interfaces inherited from interface infovis.visualization.magicLens.LabeledComponent
LabeledComponent.LabeledItem
 
Field Summary
 
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
 
Constructor Summary
VisualSelectionInteractor(ItemRenderer renderer)
          Constructor.
 
Method Summary
 void addSelection(int sel)
          Adds an item to the current selection.
 void install(JComponent comp)
          
 void mouseDragged(MouseEvent e)
          
 void mousePressed(MouseEvent e)
          
 void setSelection(int sel)
          Sets the selected item.
 void ToggleSelection(int sel)
          Toggle the selection of the specified item.
 void uninstall(JComponent comp)
          
 
Methods inherited from class infovis.visualization.inter.BasicVisualizationInteractor
getJComponent, getVisualization, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mouseMoved, mouseReleased, mouseWheelMoved, setVisualization
 
Methods inherited from class infovis.visualization.VisualizationProxy
addPropertyChangeListener, addPropertyChangeListener, createLabelItem, dispose, findVisualization, fireVisualColumnDescriptorChanged, getBounds, getComponent, getFilter, getInteractor, getItemRenderer, getOrientation, getParent, getPermutation, getPreferredSize, getRowAtIndex, getRowCount, getRowIndex, getRulerTable, getSelection, getShapeAt, getTable, getVisualColumn, getVisualColumnDescriptor, getVisualColumnIterator, getVisualization, invalidate, invalidate, isFiltered, iterator, paint, pickAll, pickAll, pickTop, pickTop, print, removePropertyChangeListener, removePropertyChangeListener, repaint, reverseIterator, setInteractor, setItemRenderer, setOrientation, setParent, setPermutation, setShapeAt, setVisualColumn, validateShapes
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisualSelectionInteractor

public VisualSelectionInteractor(ItemRenderer renderer)
Constructor.

Parameters:
renderer - a VisualSelection
Method Detail

install

public void install(JComponent comp)

Specified by:
install in interface VisualizationInteractor
Overrides:
install in class BasicVisualizationInteractor

uninstall

public void uninstall(JComponent comp)

Specified by:
uninstall in interface VisualizationInteractor
Overrides:
uninstall in class BasicVisualizationInteractor

setSelection

public void setSelection(int sel)
Sets the selected item.

Parameters:
sel - the selected item.

addSelection

public void addSelection(int sel)
Adds an item to the current selection.

Parameters:
sel - the item.

ToggleSelection

public void ToggleSelection(int sel)
Toggle the selection of the specified item.

Parameters:
sel - the item.

mousePressed

public void mousePressed(MouseEvent e)

Specified by:
mousePressed in interface MouseListener
Overrides:
mousePressed in class BasicVisualizationInteractor

mouseDragged

public void mouseDragged(MouseEvent e)

Specified by:
mouseDragged in interface MouseMotionListener
Overrides:
mouseDragged in class BasicVisualizationInteractor


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