ChartDirector 7.0 (Java Edition)

HotSpotListener


HotSpotListener is an interface for receiving hot spot mouse events (press, release, click, enter, and exit). It is similar to java.awt.event.MouseListener, except that it applies to mouse events that occur over hot spots.

(To track hot spot mouse moves and drags, use the HotSpotMotionListener.)

To handle these events, either implement this interface, or extend the abstract class HotSpotAdapter overriding only the methods of interest. ChartViewer.addHotSpotListener can then be used to register the handler object to the ChartViewer.

MethodInheritedDescription
hotSpotClicked(Self)The system will call this method when the mouse clicks on a hot spot.
hotSpotEntered(Self)The system will call this method when the mouse enters a hot spot region.
hotSpotExited(Self)The system will call this method when the mouse leaves a hot spot region.
hotSpotPressed(Self)The system will call this method when the mouse is over a hot spot region and a mouse button is pressed.
hotSpotReleased(Self)The system will call this method when the mouse is over a hot spot region and a mouse button is released.