Class RedispatchingMouseAdapter
java.lang.Object
org.jjazz.uiutilities.api.RedispatchingMouseAdapter
- All Implemented Interfaces:
MouseListener, MouseMotionListener, MouseWheelListener, EventListener
public class RedispatchingMouseAdapter
extends Object
implements MouseListener, MouseWheelListener, MouseMotionListener
A MouseAdapter that transmits MouseEvents to a parent.
-
Constructor Summary
ConstructorsConstructorDescriptionWill dispatch to the direct parent with event source changed to direct parent.RedispatchingMouseAdapter(Container toParent, boolean keepEventSource) Dispatch to a specific parent. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoid
-
Constructor Details
-
RedispatchingMouseAdapter
public RedispatchingMouseAdapter()Will dispatch to the direct parent with event source changed to direct parent. -
RedispatchingMouseAdapter
Dispatch to a specific parent.- Parameters:
toParent- Must be in the parent hierarchy. If null redirect to direct parent.keepEventSource- If true, redispatched event source is not set to toParent
-
-
Method Details
-
mouseClicked
- Specified by:
mouseClickedin interfaceMouseListener
-
mousePressed
- Specified by:
mousePressedin interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleasedin interfaceMouseListener
-
mouseEntered
- Specified by:
mouseEnteredin interfaceMouseListener
-
mouseExited
- Specified by:
mouseExitedin interfaceMouseListener
-
mouseWheelMoved
- Specified by:
mouseWheelMovedin interfaceMouseWheelListener
-
mouseDragged
- Specified by:
mouseDraggedin interfaceMouseMotionListener
-
mouseMoved
- Specified by:
mouseMovedin interfaceMouseMotionListener
-