org.opensourcephysics.tools
Class CheckTreeManager

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by org.opensourcephysics.tools.CheckTreeManager
All Implemented Interfaces:
java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener, javax.swing.event.TreeSelectionListener

public class CheckTreeManager
extends java.awt.event.MouseAdapter
implements javax.swing.event.TreeSelectionListener, java.awt.event.MouseMotionListener

A checkbox mouse and tree selection listener.

Author:
Douglas Brown Based on code by Santhosh Kumar T - santhosh@in.fiorano.com See http://www.jroller.com/page/santhosh/20050610

Constructor Summary
CheckTreeManager(javax.swing.JTree tree)
          Constructor.
 
Method Summary
 CheckTreeSelectionModel getSelectionModel()
           
 void mouseClicked(java.awt.event.MouseEvent e)
          Handles mouse click events.
 void mouseDragged(java.awt.event.MouseEvent e)
           
 void mouseMoved(java.awt.event.MouseEvent e)
          Handles mouse moved events.
 void valueChanged(javax.swing.event.TreeSelectionEvent e)
           
 
Methods inherited from class java.awt.event.MouseAdapter
mouseEntered, mouseExited, mousePressed, mouseReleased, mouseWheelMoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckTreeManager

public CheckTreeManager(javax.swing.JTree tree)
Constructor.

Parameters:
tree - a JTree
Method Detail

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
Handles mouse moved events.

Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener
Overrides:
mouseMoved in class java.awt.event.MouseAdapter
Parameters:
e - the mouse event

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Handles mouse click events.

Specified by:
mouseClicked in interface java.awt.event.MouseListener
Overrides:
mouseClicked in class java.awt.event.MouseAdapter
Parameters:
e - the mouse event

getSelectionModel

public CheckTreeSelectionModel getSelectionModel()

valueChanged

public void valueChanged(javax.swing.event.TreeSelectionEvent e)
Specified by:
valueChanged in interface javax.swing.event.TreeSelectionListener

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener
Overrides:
mouseDragged in class java.awt.event.MouseAdapter