com.imagero.swing.drag
Class ResizeHandler
java.lang.Object
javax.swing.event.MouseInputAdapter
com.imagero.swing.drag.ResizeHandler
- All Implemented Interfaces:
- java.util.EventListener, javax.swing.event.MouseInputListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener
- public class ResizeHandler
- extends javax.swing.event.MouseInputAdapter
ResizeHandler.
Easy adding resizing functionality to custom components.
"Snap to grid" is also supported by this handler.
|
Constructor Summary |
ResizeHandler(java.awt.Container comp)
Easy to use resize file.
|
| Methods inherited from class javax.swing.event.MouseInputAdapter |
mouseClicked, mouseEntered |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UNDEFINED
public static final int UNDEFINED
- See Also:
- Constant Field Values
DEFAULT
public static final int DEFAULT
- See Also:
- Constant Field Values
N_RESIZE
public static final int N_RESIZE
- See Also:
- Constant Field Values
NE_RESIZE
public static final int NE_RESIZE
- See Also:
- Constant Field Values
E_RESIZE
public static final int E_RESIZE
- See Also:
- Constant Field Values
SE_RESIZE
public static final int SE_RESIZE
- See Also:
- Constant Field Values
S_RESIZE
public static final int S_RESIZE
- See Also:
- Constant Field Values
SW_RESIZE
public static final int SW_RESIZE
- See Also:
- Constant Field Values
W_RESIZE
public static final int W_RESIZE
- See Also:
- Constant Field Values
NW_RESIZE
public static final int NW_RESIZE
- See Also:
- Constant Field Values
ResizeHandler
public ResizeHandler(java.awt.Container comp)
- Easy to use resize file.
Custom icons and snap to grid are supported.
getMinimumSize/getMaximumSize are taken into account
- Parameters:
comp -
getChecker
public GridChecker getChecker()
setChecker
public void setChecker(GridChecker checker)
getCornerSize
public int getCornerSize()
setCornerSize
public void setCornerSize(int cornerSize)
setCursor
protected void setCursor(int cursor)
createCursors
protected void createCursors(java.awt.Cursor[] cursors)
mouseExited
public void mouseExited(java.awt.event.MouseEvent e)
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent e)
mouseMoved
public void mouseMoved(java.awt.event.MouseEvent e)