Package org.apache.batik.swing
Class JSVGCanvas.ToolTipModifier
java.lang.Object
org.apache.batik.swing.JSVGCanvas.ToolTipModifier
- All Implemented Interfaces:
EventListener
- Enclosing class:
JSVGCanvas
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
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.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JSVGCanvas.CanvasUserAgent
The CanvasUserAgent used to track the last tool tip event. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
canvasUserAgent
The CanvasUserAgent used to track the last tool tip event.
-
-
Constructor Details
-
ToolTipModifier
public ToolTipModifier()Creates a new ToolTipModifier object.
-
-
Method Details
-
handleEvent
- Specified by:
handleEvent
in interfaceEventListener
-