org.knime.base.node.viz.plotter
Class AbstractPlotter.SelectionMouseListener

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by org.knime.base.node.viz.plotter.PlotterMouseListener
          extended by org.knime.base.node.viz.plotter.AbstractPlotter.SelectionMouseListener
All Implemented Interfaces:
MouseListener, MouseMotionListener, MouseWheelListener, EventListener
Enclosing class:
AbstractPlotter

public class AbstractPlotter.SelectionMouseListener
extends PlotterMouseListener

The selection mouse listener checks the selection status, that is, if the mouse was dragged, the CTRL key is pressed and so on and calls the appropriate methods in the AbstractPlotter. A drawing pane may be passed in order to let it listen to another drawing pane.


Constructor Summary
AbstractPlotter.SelectionMouseListener()
          Listens to the drawing pane of this plotter.
AbstractPlotter.SelectionMouseListener(AbstractDrawingPane pane)
           
 
Method Summary
 Cursor getCursor()
          
 AbstractDrawingPane getInternalDrawingPane()
           
 void mouseDragged(MouseEvent e)
          
 void mousePressed(MouseEvent e)
          
 void mouseReleased(MouseEvent e)
          
 String toString()
          
 
Methods inherited from class org.knime.base.node.viz.plotter.PlotterMouseListener
mouseMoved
 
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseEntered, mouseExited, mouseWheelMoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractPlotter.SelectionMouseListener

public AbstractPlotter.SelectionMouseListener()
Listens to the drawing pane of this plotter.


AbstractPlotter.SelectionMouseListener

public AbstractPlotter.SelectionMouseListener(AbstractDrawingPane pane)
Parameters:
pane - the panel the selection listener listenes to.
Method Detail

mousePressed

public void mousePressed(MouseEvent e)

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

mouseReleased

public void mouseReleased(MouseEvent e)

Specified by:
mouseReleased in interface MouseListener
Overrides:
mouseReleased in class MouseAdapter

mouseDragged

public void mouseDragged(MouseEvent e)

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

getCursor

public Cursor getCursor()

Overrides:
getCursor in class PlotterMouseListener
Returns:
the default cursor for this mouse listener.

toString

public String toString()

Overrides:
toString in class Object

getInternalDrawingPane

public AbstractDrawingPane getInternalDrawingPane()
Returns:
the drawing pane this listener listens to.


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.