Raccoon.GUI
Class PVNodeHintUI
java.lang.Object
com.touchgraph.graphlayout.interaction.TGUserInterface
com.touchgraph.graphlayout.interaction.TGAbstractMousePausedUI
Raccoon.GUI.PVNodeHintUI
- public class PVNodeHintUI
- extends com.touchgraph.graphlayout.interaction.TGAbstractMousePausedUI
PVNodeHintUI: A UserInterface that shows a hint when the mouse is
paused over a node. Rather then adding a listener to each node,
This UI tests the position of the mouse every time it is paused, and
associates the hint with the node over which the mouse is paused.
If after the hint is displayed the mouse is moved and paused over an
empty space, or leaves the TGLinkBrowser frame, the hint disappears.
If the mouse is paused over a new node, then the current hint is replaced
by the hint for the new node.
Moving the mouse over the hint allows it to remain active indefinately,
which means that it can be scrolled, and eventually edited.
- Author:
- Alexander Shapiro
Methods inherited from class com.touchgraph.graphlayout.interaction.TGAbstractMousePausedUI |
activate, cancelPause, deactivate, resetPause |
Methods inherited from class com.touchgraph.graphlayout.interaction.TGUserInterface |
activate, isActive |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PVNodeHintUI
public PVNodeHintUI(PeerViewBrowser tglb)
showHint
public void showHint(com.touchgraph.linkbrowser.LBNode n)
hideHint
public void hideHint()
preActivate
public void preActivate()
postDeactivate
public void postDeactivate()
mousePaused
public void mousePaused(java.awt.event.MouseEvent e)
mouseMoved
public void mouseMoved(java.awt.event.MouseEvent e)
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent e)