JIDE 3.5.15

com.jidesoft.swing
Class ResizableMouseInputAdapter

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by javax.swing.event.MouseInputAdapter
          extended by 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.


Field Summary
protected static int RESIZE_NONE
           
 
Constructor Summary
ResizableMouseInputAdapter(Resizable resizable)
           
 
Method Summary
 void mouseDragged(MouseEvent e)
           
 void mouseExited(MouseEvent e)
           
 void mouseMoved(MouseEvent e)
          mouseMoved is for resize only.
 void mousePressed(MouseEvent e)
           
 void mouseReleased(MouseEvent e)
           
 
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseEntered, mouseWheelMoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.event.MouseListener
mouseClicked, mouseEntered
 

Field Detail

RESIZE_NONE

protected static final int RESIZE_NONE
See Also:
Constant Field Values
Constructor Detail

ResizableMouseInputAdapter

public ResizableMouseInputAdapter(Resizable resizable)
Method Detail

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

JIDE 3.5.15