|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjavax.swing.event.MouseInputAdapter
com.imagero.gui.flowin.util.ResizeHandler
ResizeHandler. Easy adding resizing functionality to custom components. "Snap to grid" is also supported by this handler.
| Field Summary | |
static int |
DEFAULT
|
static int |
E_RESIZE
|
static int |
N_RESIZE
|
static int |
NE_RESIZE
|
static int |
NW_RESIZE
|
static int |
S_RESIZE
|
static int |
SE_RESIZE
|
static int |
SW_RESIZE
|
static int |
UNDEFINED
|
static int |
W_RESIZE
|
| Constructor Summary | |
ResizeHandler(java.awt.Container comp)
Easy to use resize file. |
|
| Method Summary | |
protected void |
createCursors(java.awt.Cursor[] cursors)
|
GridChecker |
getChecker()
|
int |
getCornerSize()
|
void |
mouseDragged(java.awt.event.MouseEvent e)
Invoked when a mouse button is pressed on a component and then dragged. |
void |
mouseExited(java.awt.event.MouseEvent e)
Invoked when the mouse exits a component. |
void |
mouseMoved(java.awt.event.MouseEvent e)
Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed. |
void |
mousePressed(java.awt.event.MouseEvent e)
Invoked when a mouse button has been pressed on a component. |
void |
mouseReleased(java.awt.event.MouseEvent e)
Invoked when a mouse button has been released on a component. |
void |
setChecker(GridChecker checker)
|
void |
setCornerSize(int cornerSize)
|
protected void |
setCursor(int cursor)
|
| 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 |
| Field Detail |
public static final int DEFAULT
public static final int E_RESIZE
public static final int N_RESIZE
public static final int NE_RESIZE
public static final int NW_RESIZE
public static final int S_RESIZE
public static final int SE_RESIZE
public static final int SW_RESIZE
public static final int UNDEFINED
public static final int W_RESIZE
| Constructor Detail |
public ResizeHandler(java.awt.Container comp)
comp - | Method Detail |
protected void createCursors(java.awt.Cursor[] cursors)
public GridChecker getChecker()
public int getCornerSize()
public void mouseDragged(java.awt.event.MouseEvent e)
java.awt.event.MouseMotionListenerMOUSE_DRAGGED events will continue to be
delivered to the component where the drag originated until the
mouse button is released (regardless of whether the mouse position
is within the bounds of the component).
Due to platform-dependent Drag&Drop implementations,
MOUSE_DRAGGED events may not be delivered during a native
Drag&Drop operation.
public void mouseExited(java.awt.event.MouseEvent e)
java.awt.event.MouseListener
public void mouseMoved(java.awt.event.MouseEvent e)
java.awt.event.MouseMotionListener
public void mousePressed(java.awt.event.MouseEvent e)
java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
java.awt.event.MouseListener
public void setChecker(GridChecker checker)
public void setCornerSize(int cornerSize)
protected void setCursor(int cursor)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||