Class JSVGCanvas.ToolTipModifier

  • All Implemented Interfaces:
    org.w3c.dom.events.EventListener
    Enclosing class:
    JSVGCanvas

    protected class JSVGCanvas.ToolTipModifier
    extends java.lang.Object
    implements org.w3c.dom.events.EventListener
    Sets a specific tooltip on the JSVGCanvas when a given event occurs. This listener is used in the handleElement method to set, remove or modify the JSVGCanvas tooltip on mouseover and on mouseout.
    Because we are on a single JComponent we trigger an artificial MouseEvent when the toolTip is set to a non-null value, so as to make sure it will show after the ToolTipManager's default delay.
    • Constructor Summary

      Constructors 
      Constructor Description
      ToolTipModifier()
      Creates a new ToolTipModifier object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void handleEvent​(org.w3c.dom.events.Event evt)  
      • Methods inherited from class java.lang.Object

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

      • canvasUserAgent

        protected JSVGCanvas.CanvasUserAgent canvasUserAgent
        The CanvasUserAgent used to track the last tool tip event.
    • Constructor Detail

      • ToolTipModifier

        public ToolTipModifier()
        Creates a new ToolTipModifier object.
    • Method Detail

      • handleEvent

        public void handleEvent​(org.w3c.dom.events.Event evt)
        Specified by:
        handleEvent in interface org.w3c.dom.events.EventListener