Class InstantTipper
java.lang.Object
java.awt.event.MouseAdapter
uk.ac.starlink.topcat.plot2.InstantTipper
- All Implemented Interfaces:
MouseListener, MouseMotionListener, MouseWheelListener, EventListener
MouseListener that, when installed on a component, causes tooltips
to appear instantly and without dismissal.
This works by doctoring the global ToolTipManager. It will not play nicely with any other code that is making global adjustments to tool tip management. I'd like to do it differently, but ToolTipManager itself is a singleton, which makes it difficult to handle this in a more localised way.
Singleton class.
- Since:
- 29 Jan 2015
- Author:
- Mark Taylor
-
Method Summary
Modifier and TypeMethodDescriptionstatic InstantTipperReturns the sole instance of this class.voidmouseEntered(MouseEvent evt) voidmouseExited(MouseEvent evt) Methods inherited from class MouseAdapter
mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved
-
Method Details
-
mouseEntered
- Specified by:
mouseEnteredin interfaceMouseListener- Overrides:
mouseEnteredin classMouseAdapter
-
mouseExited
- Specified by:
mouseExitedin interfaceMouseListener- Overrides:
mouseExitedin classMouseAdapter
-
getInstance
Returns the sole instance of this class.
-