ChartDirector 7.0 (Java Edition)

HotSpotMotionListener


HotSpotMotionListener is an interface for receiving hot spot mouse motion events (moves and drags). It is similar to java.awt.event.MouseMotionListener, except that it applies to mouse motion events that occur over hot spots.

(For other hot spot events, see HotSpotListener.)

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

MethodInheritedDescription
hotSpotMoved(Self)The system will call this method when the mouse moves over a hot spot.
hotSpotDragged(Self)The system will call this method when the mouse button is pressed and the mouse moves over a hot spot.