public class BasicDesktopIconUI.MouseInputHandler extends MouseInputAdapter
Constructor and Description |
---|
BasicDesktopIconUI.MouseInputHandler() |
Modifier and Type | Method and Description |
---|---|
void |
mouseDragged(MouseEvent e)
This method is called when the mouse is dragged in the JDesktopIcon.
|
void |
mouseMoved(MouseEvent e)
This method is called when the mouse is moved in the JDesktopIcon.
|
void |
mousePressed(MouseEvent e)
This method is called when the mouse is pressed in the JDesktopIcon.
|
void |
mouseReleased(MouseEvent e)
This method is called when the mouse is released in the JDesktopIcon.
|
void |
moveAndRepaint(JComponent f,
int newX,
int newY,
int newWidth,
int newHeight)
This method moves and repaints the JDesktopIcon to the given bounds.
|
mouseClicked, mouseEntered, mouseExited
public BasicDesktopIconUI.MouseInputHandler()
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
mouseDragged
in class MouseInputAdapter
e
- The MouseEvent.public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
mouseMoved
in class MouseInputAdapter
e
- The MouseEvent.public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
mousePressed
in class MouseInputAdapter
e
- The MouseEvent.public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
mouseReleased
in class MouseInputAdapter
e
- The MouseEvent.public void moveAndRepaint(JComponent f, int newX, int newY, int newWidth, int newHeight)
f
- The JComponent to move and repaint.newX
- The new x coordinate.newY
- The new y coordinate.newWidth
- The new width.newHeight
- The new height.