edu.jhu.tmaj.client.frida.gui.masks.color
Class FullSlider.HeldMouseListener
java.lang.Object
java.awt.event.MouseAdapter
edu.jhu.tmaj.client.frida.gui.masks.color.FullSlider.HeldMouseListener
- All Implemented Interfaces:
- java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener
- Enclosing class:
- FullSlider
static final class FullSlider.HeldMouseListener
- extends java.awt.event.MouseAdapter
A MouseListener that fires off a Timer when the mouse is pressed
and stops the timer when the Mouse is released. The idea is this
MouseListener is to simulate an item being "held" by a Mouse; that is,
the left button goes down and doesn't come up. Whatever ActionListener is feed into the
Timer is whatever action will be done repeatly when the mouse is held (on the component to which this listener is attached.)
Methods inherited from class java.awt.event.MouseAdapter |
mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseWheelMoved |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FullSlider.HeldMouseListener
FullSlider.HeldMouseListener(javax.swing.Timer timer)
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
- Specified by:
mousePressed
in interface java.awt.event.MouseListener
- Overrides:
mousePressed
in class java.awt.event.MouseAdapter
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
- Specified by:
mouseReleased
in interface java.awt.event.MouseListener
- Overrides:
mouseReleased
in class java.awt.event.MouseAdapter