public class BasicDesktopIconUI.MouseInputHandler extends javax.swing.event.MouseInputAdapter
| Constructor and Description |
|---|
BasicDesktopIconUI.MouseInputHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
mouseDragged(java.awt.event.MouseEvent e)
This method is called when the mouse is dragged in the JDesktopIcon.
|
void |
mouseMoved(java.awt.event.MouseEvent e)
This method is called when the mouse is moved in the JDesktopIcon.
|
void |
mousePressed(java.awt.event.MouseEvent e)
This method is called when the mouse is pressed in the JDesktopIcon.
|
void |
mouseReleased(java.awt.event.MouseEvent e)
This method is called when the mouse is released in the JDesktopIcon.
|
void |
moveAndRepaint(javax.swing.JComponent f,
int newX,
int newY,
int newWidth,
int newHeight)
This method moves and repaints the JDesktopIcon to the given bounds.
|
public BasicDesktopIconUI.MouseInputHandler()
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenermouseDragged in class javax.swing.event.MouseInputAdaptere - The MouseEvent.public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListenermouseMoved in class javax.swing.event.MouseInputAdaptere - The MouseEvent.public void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenermousePressed in class javax.swing.event.MouseInputAdaptere - The MouseEvent.public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenermouseReleased in class javax.swing.event.MouseInputAdaptere - The MouseEvent.public void moveAndRepaint(javax.swing.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.