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 voidProcess the event when the mouse enters the canvas.final voidProcess the event when the mouse exits the canvas.final voidThe action to be taken when the mouse is moved on the canvas.final voidHide window when the mouse is pressed on the canvas.voidsetActive(boolean active) Activates this JaxoLatexTextToolTip.voidSets the graph.Methods inherited from class MouseAdapter
mouseClicked, mouseDragged, mouseReleased, mouseWheelMoved
-
Constructor Details
-
JaxoLatexTextToolTip
public JaxoLatexTextToolTip()Constructor.
-
-
Method Details
-
setGraph
-
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:
mouseEnteredin interfaceMouseListener- Overrides:
mouseEnteredin 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:
mouseMovedin interfaceMouseMotionListener- Overrides:
mouseMovedin classMouseAdapter- Parameters:
e- The mouse event.
-
mouseExited
Process the event when the mouse exits the canvas. Hide window.- Specified by:
mouseExitedin interfaceMouseListener- Overrides:
mouseExitedin classMouseAdapter- Parameters:
e- The mouse event to process.
-
mousePressed
Hide window when the mouse is pressed on the canvas.- Specified by:
mousePressedin interfaceMouseListener- Overrides:
mousePressedin classMouseAdapter- Parameters:
e- The mouse event to process.
-