Package net.sf.jaxodraw.gui.panel
Class JaxoLatexTextToolTip
java.lang.Object
java.awt.event.MouseAdapter
net.sf.jaxodraw.gui.panel.JaxoLatexTextToolTip
- All Implemented Interfaces:
MouseListener
,MouseMotionListener
,MouseWheelListener
,EventListener
Show tooltips if the mouse moves over JaxoLatexText objects
on the JaxoCanvas in the focused window.
Note: For simplicity, this implements listener methods directly.
Do not call or override.
- Since:
- 2.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal void
Process the event when the mouse enters the canvas.final void
Process the event when the mouse exits the canvas.final void
The action to be taken when the mouse is moved on the canvas.final void
Hide window when the mouse is pressed on the canvas.void
setActive
(boolean active) Activates this JaxoLatexTextToolTip.void
Sets the graph.Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseDragged, mouseReleased, mouseWheelMoved
-
Constructor Details
-
JaxoLatexTextToolTip
public JaxoLatexTextToolTip()Constructor.
-
-
Method Details
-
setGraph
Sets the graph.- Parameters:
graph
- the graph. May be null.
-
setActive
public void setActive(boolean active) Activates this JaxoLatexTextToolTip. By default, the ToolTip is activated.- Parameters:
active
- true to activate the ToolTip, false otherwise.
-
mouseEntered
Process the event when the mouse enters the canvas. Perform action, just in case.- Specified by:
mouseEntered
in interfaceMouseListener
- Overrides:
mouseEntered
in classMouseAdapter
- Parameters:
e
- The mouse event to process.
-
mouseMoved
The action to be taken when the mouse is moved on the canvas. Checks for Latex texts and shows the latex panel.- Specified by:
mouseMoved
in interfaceMouseMotionListener
- Overrides:
mouseMoved
in classMouseAdapter
- Parameters:
e
- The mouse event.
-
mouseExited
Process the event when the mouse exits the canvas. Hide window.- Specified by:
mouseExited
in interfaceMouseListener
- Overrides:
mouseExited
in classMouseAdapter
- Parameters:
e
- The mouse event to process.
-
mousePressed
Hide window when the mouse is pressed on the canvas.- Specified by:
mousePressed
in interfaceMouseListener
- Overrides:
mousePressed
in classMouseAdapter
- Parameters:
e
- The mouse event to process.
-