public class BasicDesktopIconUI.MouseInputHandler extends MouseInputAdapter
BasicDesktopIconUI.
| Constructor and Description |
|---|
MouseInputHandler()
|
| Modifier and Type | Method and Description |
|---|---|
void |
mouseDragged(MouseEvent
Invoked when a mouse button is pressed on a component and then dragged.
|
void |
mouseMoved(MouseEvent
Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed.
|
void |
mousePressed(MouseEvent
Invoked when a mouse button has been pressed on a component.
|
void |
mouseReleased(MouseEvent
Invoked when a mouse button has been released on a component.
|
void |
moveAndRepaint(JComponent
|
mouseClicked, mouseEntered, mouseExited, mouseWheelMovedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmouseClicked, mouseEntered, mouseExitedpublic void mouseReleased(MouseEvente)
MouseAdapter
public void mousePressed(MouseEvente)
MouseAdapter
public void mouseMoved(MouseEvente)
MouseAdapter
public void mouseDragged(MouseEvente)
MouseAdapter
MOUSE_DRAGGED events will continue to be delivered to the component where the drag originated until the mouse button is released (regardless of whether the mouse position is within the bounds of the component).
Due to platform-dependent Drag&Drop implementations, MOUSE_DRAGGED events may not be delivered during a native Drag&Drop operation.
public void moveAndRepaint(JComponentf, int newX, int newY, int newWidth, int newHeight)