infovis.visualization.inter
Class ExcentricVisualizationInteractor

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

public class ExcentricVisualizationInteractor
extends BasicVisualizationInteractor

Interactor for excentric labels

Version:
$Revision: 1.7 $
Author:
Jean-Daniel Fekete
InfoVis factory arguments:
InteractorFactory infovis.visualization.magicLens.ExcentricLabelVisualization

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
ExcentricVisualizationInteractor(ExcentricLabelVisualization vis)
           
 
Method Summary
static float dist2(float dx, float dy)
           
 ExcentricLabelVisualization getExcentricVisualization()
           
 int getThreshold()
          Returns the threshold.
 void install(JComponent comp)
           
 boolean isVisible()
           
 void mouseEntered(MouseEvent e)
           
 void mouseExited(MouseEvent e)
           
 void mouseMoved(MouseEvent e)
           
 void mousePressed(MouseEvent e)
           
 void restart()
           
 void setThreshold(int threshold)
          Sets the threshold.
 void setVisible(boolean v)
           
 void stop()
           
 void uninstall(JComponent comp)
           
 
Methods inherited from class infovis.visualization.inter.BasicVisualizationInteractor
getJComponent, getVisualization, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, 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

ExcentricVisualizationInteractor

public ExcentricVisualizationInteractor(ExcentricLabelVisualization vis)
Method Detail

getExcentricVisualization

public ExcentricLabelVisualization getExcentricVisualization()

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

restart

public void restart()

stop

public void stop()

setVisible

public void setVisible(boolean v)

isVisible

public boolean isVisible()

dist2

public static float dist2(float dx,
                          float dy)

mouseEntered

public void mouseEntered(MouseEvent e)
Specified by:
mouseEntered in interface MouseListener
Overrides:
mouseEntered in class BasicVisualizationInteractor
See Also:
MouseAdapter.mouseEntered(MouseEvent)

mouseExited

public void mouseExited(MouseEvent e)
Specified by:
mouseExited in interface MouseListener
Overrides:
mouseExited in class BasicVisualizationInteractor
See Also:
MouseAdapter.mouseExited(MouseEvent)

mousePressed

public void mousePressed(MouseEvent e)
Specified by:
mousePressed in interface MouseListener
Overrides:
mousePressed in class BasicVisualizationInteractor
See Also:
MouseAdapter.mousePressed(MouseEvent)

mouseMoved

public void mouseMoved(MouseEvent e)
Specified by:
mouseMoved in interface MouseMotionListener
Overrides:
mouseMoved in class BasicVisualizationInteractor
See Also:
MouseMotionListener.mouseMoved(MouseEvent)

getThreshold

public int getThreshold()
Returns the threshold. When the mouse moves a distance larger than this threshold since the last event, excentric labels are disabled.

Returns:
int

setThreshold

public void setThreshold(int threshold)
Sets the threshold. When the mouse moves a distance larger than the specified threshold since the last event, excentric labels are disabled.

Parameters:
threshold - The threshold to set


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