org.knime.core.node.tableview
Class RowHeaderHeightMouseListener

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by javax.swing.event.MouseInputAdapter
          extended by org.knime.core.node.tableview.RowHeaderHeightMouseListener
All Implemented Interfaces:
MouseListener, MouseMotionListener, MouseWheelListener, EventListener, MouseInputListener

 class RowHeaderHeightMouseListener
extends MouseInputAdapter

A mouse listener and mouse motion listener that is registered to a JTable to change row height as the user resizes a row. This JTable represents the row header view in a scrollpane (it has one column).

Author:
Bernd Wiswedel, University of Konstanz

Constructor Summary
RowHeaderHeightMouseListener(JTable table)
          Creates a new listener and also registers this listener to the argument table.
 
Method Summary
 void mouseDragged(MouseEvent e)
          
 void mouseMoved(MouseEvent e)
          
 void mousePressed(MouseEvent e)
          
 void mouseReleased(MouseEvent e)
          
 
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, toString, wait, wait, wait
 
Methods inherited from interface java.awt.event.MouseListener
mouseClicked, mouseEntered, mouseExited
 

Constructor Detail

RowHeaderHeightMouseListener

public RowHeaderHeightMouseListener(JTable table)
Creates a new listener and also registers this listener to the argument table.

Parameters:
table - The table to observe.
Throws:
NullPointerException - If the argument is null.
Method Detail

mousePressed

public void mousePressed(MouseEvent e)

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

mouseMoved

public void mouseMoved(MouseEvent e)

Specified by:
mouseMoved in interface MouseMotionListener
Overrides:
mouseMoved in class MouseAdapter

mouseDragged

public void mouseDragged(MouseEvent e)

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

mouseReleased

public void mouseReleased(MouseEvent e)

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


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.