Class 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.MouseAdapter
    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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void mouseEntered​(java.awt.event.MouseEvent e)
      Process the event when the mouse enters the canvas.
      void mouseExited​(java.awt.event.MouseEvent e)
      Process the event when the mouse exits the canvas.
      void mouseMoved​(java.awt.event.MouseEvent e)
      The action to be taken when the mouse is moved on the canvas.
      void mousePressed​(java.awt.event.MouseEvent e)
      Hide window when the mouse is pressed on the canvas.
      void setActive​(boolean active)
      Activates this JaxoLatexTextToolTip.
      void setGraph​(JaxoGraph graph)
      Sets the graph.
      • Methods inherited from class java.awt.event.MouseAdapter

        mouseClicked, mouseDragged, mouseReleased, mouseWheelMoved
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JaxoLatexTextToolTip

        public JaxoLatexTextToolTip()
        Constructor.
    • 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:
        mouseEntered in interface java.awt.event.MouseListener
        Overrides:
        mouseEntered in class java.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:
        mouseMoved in interface java.awt.event.MouseMotionListener
        Overrides:
        mouseMoved in class java.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:
        mouseExited in interface java.awt.event.MouseListener
        Overrides:
        mouseExited in class java.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:
        mousePressed in interface java.awt.event.MouseListener
        Overrides:
        mousePressed in class java.awt.event.MouseAdapter
        Parameters:
        e - The mouse event to process.