au.edu.jcu.hermes.ui.swing.core.plaf
Class ViewToolTips

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by au.edu.jcu.hermes.ui.swing.core.plaf.ViewToolTips
All Implemented Interfaces:
java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener

public final class ViewToolTips
extends java.awt.event.MouseAdapter
implements java.awt.event.MouseMotionListener

Displays pseudo-tooltips for tree and list views which don't have enough space. This class is not NB specific, and can be used with any JTree or JList.


Method Summary
 void mouseDragged(java.awt.event.MouseEvent e)
           
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mouseMoved(java.awt.event.MouseEvent e)
           
static void register(javax.swing.JComponent comp)
          Register a child of a JScrollPane (only JList or JTree supported for now) which should show helper tooltips.
static void unregister(javax.swing.JComponent comp)
          Unregister a child of a JScrollPane (only JList or JTree supported for now) which should show helper tooltips.
 
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mousePressed, mouseReleased
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

register

public static void register(javax.swing.JComponent comp)
Register a child of a JScrollPane (only JList or JTree supported for now) which should show helper tooltips. Should be called from the component's addNotify() method.


unregister

public static void unregister(javax.swing.JComponent comp)
Unregister a child of a JScrollPane (only JList or JTree supported for now) which should show helper tooltips. Should be called from the component's removeNotify() method.


mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener

mouseDragged

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

mouseEntered

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

mouseExited

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