Class BasicTreeUI.MouseInputHandler
- java.lang.Object
-
- javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler
- All Implemented Interfaces:
-
MouseListener
,MouseMotionListener
,EventListener
,MouseInputListener
- Enclosing class:
- BasicTreeUI
public class BasicTreeUI.MouseInputHandler extends Object implements MouseInputListener
MouseInputHandler handles passing all mouse events, including mouse motion events, until the mouse is released to the destination it is constructed with. It is assumed all the events are currently target at source.
Fields
Modifier and Type | Field | Description |
---|---|---|
protected Component | destination | Destination that receives all events. |
protected Component | source | Source that events are coming from. |
Constructors
Constructor | Description |
---|---|
MouseInputHandler(Component source,
Component destination,
MouseEvent event) | Constructs a new instance of |
Methods
Modifier and Type | Method | Description |
---|---|---|
protected void | removeFromSource() | Removes an event from the source. |
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods declared in interface java.awt.event.MouseListener
mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased
Methods declared in interface java.awt.event.MouseMotionListener
mouseDragged, mouseMoved
Fields
source
protected Component source
Source that events are coming from.
destination
protected Component destination
Destination that receives all events.
Constructors
MouseInputHandler
public MouseInputHandler(Component source, Component destination, MouseEvent event)
Constructs a new instance of MouseInputHandler
.
- Parameters:
-
source
- a source component -
destination
- a destination component -
event
- a mouse event
Methods
removeFromSource
protected void removeFromSource()
Removes an event from the source.
© 1993, 2020, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/plaf/basic/BasicTreeUI.MouseInputHandler.html