Package net.sf.jaxodraw.gui.panel
Class JaxoLatexTextToolTip
- java.lang.Object
-
- java.awt.event.MouseAdapter
-
- net.sf.jaxodraw.gui.panel.JaxoLatexTextToolTip
-
- All Implemented Interfaces:
java.awt.event.MouseListener,java.awt.event.MouseMotionListener,java.awt.event.MouseWheelListener,java.util.EventListener
public class JaxoLatexTextToolTip extends java.awt.event.MouseAdapterShow 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 Constructor Description JaxoLatexTextToolTip()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmouseEntered(java.awt.event.MouseEvent e)Process the event when the mouse enters the canvas.voidmouseExited(java.awt.event.MouseEvent e)Process the event when the mouse exits the canvas.voidmouseMoved(java.awt.event.MouseEvent e)The action to be taken when the mouse is moved on the canvas.voidmousePressed(java.awt.event.MouseEvent e)Hide window when the mouse is pressed on the canvas.voidsetActive(boolean active)Activates this JaxoLatexTextToolTip.voidsetGraph(JaxoGraph graph)Sets the graph.
-
-
-
Method Detail
-
setGraph
public void setGraph(JaxoGraph graph)
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
public final void mouseEntered(java.awt.event.MouseEvent e)
Process the event when the mouse enters the canvas. Perform action, just in case.- Specified by:
mouseEnteredin interfacejava.awt.event.MouseListener- Overrides:
mouseEnteredin classjava.awt.event.MouseAdapter- Parameters:
e- The mouse event to process.
-
mouseMoved
public final void mouseMoved(java.awt.event.MouseEvent e)
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 interfacejava.awt.event.MouseMotionListener- Overrides:
mouseMovedin classjava.awt.event.MouseAdapter- Parameters:
e- The mouse event.
-
mouseExited
public final void mouseExited(java.awt.event.MouseEvent e)
Process the event when the mouse exits the canvas. Hide window.- Specified by:
mouseExitedin interfacejava.awt.event.MouseListener- Overrides:
mouseExitedin classjava.awt.event.MouseAdapter- Parameters:
e- The mouse event to process.
-
mousePressed
public final void mousePressed(java.awt.event.MouseEvent e)
Hide window when the mouse is pressed on the canvas.- Specified by:
mousePressedin interfacejava.awt.event.MouseListener- Overrides:
mousePressedin classjava.awt.event.MouseAdapter- Parameters:
e- The mouse event to process.
-
-