com.jidesoft.swing
Class ResizableMouseInputAdapter
java.lang.Object
java.awt.event.MouseAdapter
javax.swing.event.MouseInputAdapter
com.jidesoft.swing.ResizableMouseInputAdapter
- All Implemented Interfaces:
- MouseListener, MouseMotionListener, MouseWheelListener, EventListener, MouseInputListener
public class ResizableMouseInputAdapter
- extends MouseInputAdapter
Mouse input listener to control the resizing of Resizable
component.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESIZE_NONE
protected static final int RESIZE_NONE
- See Also:
- Constant Field Values
ResizableMouseInputAdapter
public ResizableMouseInputAdapter(Resizable resizable)
mousePressed
public void mousePressed(MouseEvent e)
- Specified by:
mousePressed
in interface MouseListener
- Overrides:
mousePressed
in class MouseAdapter
mouseDragged
public void mouseDragged(MouseEvent e)
- Specified by:
mouseDragged
in interface MouseMotionListener
- Overrides:
mouseDragged
in class MouseAdapter
mouseReleased
public void mouseReleased(MouseEvent e)
- Specified by:
mouseReleased
in interface MouseListener
- Overrides:
mouseReleased
in class MouseAdapter
mouseMoved
public void mouseMoved(MouseEvent e)
- mouseMoved is for resize only. When mouse moves over borders and corners, it will change to different cursor to
indicate it's resizable.
- Specified by:
mouseMoved
in interface MouseMotionListener
- Overrides:
mouseMoved
in class MouseAdapter
- Parameters:
e
- mouse event
mouseExited
public void mouseExited(MouseEvent e)
- Specified by:
mouseExited
in interface MouseListener
- Overrides:
mouseExited
in class MouseAdapter