infovis.visualization.inter
Class VisualSelectionInteractor
java.lang.Object
infovis.visualization.VisualizationProxy
infovis.visualization.inter.BasicVisualizationInteractor
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
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 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 |
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 |
VisualSelectionInteractor
public VisualSelectionInteractor(ItemRenderer renderer)
- Constructor.
- Parameters:
renderer
- a VisualSelection
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.