Package org.apache.batik.swing
Class JSVGCanvas.ToolTipModifier
- java.lang.Object
-
- org.apache.batik.swing.JSVGCanvas.ToolTipModifier
-
- All Implemented Interfaces:
EventListener
- Enclosing class:
- JSVGCanvas
protected class JSVGCanvas.ToolTipModifier extends java.lang.Object implements 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 singleJComponentwe trigger an artificialMouseEventwhen the toolTip is set to a non-null value, so as to make sure it will show after theToolTipManager's default delay.
-
-
Field Summary
Fields Modifier and Type Field Description protected JSVGCanvas.CanvasUserAgentcanvasUserAgentThe CanvasUserAgent used to track the last tool tip event.
-
Constructor Summary
Constructors Constructor Description ToolTipModifier()Creates a new ToolTipModifier object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleEvent(Event evt)This method is called whenever an event occurs of the event type for which theEventListenerinterface was registered.
-
-
-
Field Detail
-
canvasUserAgent
protected JSVGCanvas.CanvasUserAgent canvasUserAgent
The CanvasUserAgent used to track the last tool tip event.
-
-
Method Detail
-
handleEvent
public void handleEvent(Event evt)
Description copied from interface:EventListenerThis method is called whenever an event occurs of the event type for which theEventListenerinterface was registered.- Specified by:
handleEventin interfaceEventListener- Parameters:
evt- TheEventcontains contextual information about the event.
-
-