org.jdesktop.swingx
Class RolloverProducer
java.lang.Object
org.jdesktop.swingx.RolloverProducer
- All Implemented Interfaces:
- MouseListener, MouseMotionListener, EventListener
public class RolloverProducer
- extends Object
- implements MouseListener, MouseMotionListener
Mouse/Motion/Listener which stores mouse location as
client property in the target JComponent.
Note: assumes that the component it is listening to is
of type JComponent!
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLICKED_KEY
public static final String CLICKED_KEY
- See Also:
- Constant Field Values
ROLLOVER_KEY
public static final String ROLLOVER_KEY
- See Also:
- Constant Field Values
rollover
protected Point rollover
RolloverProducer
public RolloverProducer()
mouseClicked
public void mouseClicked(MouseEvent e)
- Specified by:
mouseClicked
in interface MouseListener
mousePressed
public void mousePressed(MouseEvent e)
- Specified by:
mousePressed
in interface MouseListener
mouseReleased
public void mouseReleased(MouseEvent e)
- Specified by:
mouseReleased
in interface MouseListener
mouseEntered
public void mouseEntered(MouseEvent e)
- Specified by:
mouseEntered
in interface MouseListener
mouseExited
public void mouseExited(MouseEvent e)
- Specified by:
mouseExited
in interface MouseListener
mouseDragged
public void mouseDragged(MouseEvent e)
- Specified by:
mouseDragged
in interface MouseMotionListener
mouseMoved
public void mouseMoved(MouseEvent e)
- Specified by:
mouseMoved
in interface MouseMotionListener
updateRollover
protected void updateRollover(MouseEvent e,
String property)
updateClientProperty
protected void updateClientProperty(JComponent component,
String property)
updateRolloverPoint
protected void updateRolloverPoint(JComponent component,
Point mousePoint)
- Subclasses must override to map the given mouse coordinates into
appropriate client coordinates. The result must be stored in the
rollover field.
Here: does nothing.
- Parameters:
component
- mousePoint
-