The HotSpotMotionListener is similar to java.awt.event.MouseMotionListener. Instead of listening to general mouse motion events, the HotSpotListener listens to mouse motion events occurred over the hot spots only, and supply the event listener with hot spot attributes.