C - a Componentpublic abstract class DragGestureMoveComponentHandler<C extends java.awt.Component>
extends java.awt.event.MouseAdapter
| Modifier and Type | Field and Description |
|---|---|
protected C |
component |
protected java.awt.Cursor |
cursorBeforeDragging |
protected static java.awt.Cursor |
MouseDragCursor |
protected java.awt.Point |
offsetPoint |
| Modifier | Constructor and Description |
|---|---|
protected |
DragGestureMoveComponentHandler(C component) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEnabled()
This method returns true if the handler is enabled or false otherwise.
|
abstract void |
mouseDragged(java.awt.event.MouseEvent arg0) |
void |
mousePressed(java.awt.event.MouseEvent arg0) |
void |
mouseReleased(java.awt.event.MouseEvent arg0) |
void |
setEnabled(boolean enabled)
This method enables or disables the handler.
|
protected static java.awt.Cursor MouseDragCursor
protected final C extends java.awt.Component component
protected java.awt.Cursor cursorBeforeDragging
protected java.awt.Point offsetPoint
protected DragGestureMoveComponentHandler(C component)
public abstract void mouseDragged(java.awt.event.MouseEvent arg0)
mouseDragged in interface java.awt.event.MouseMotionListenermouseDragged in class java.awt.event.MouseAdapterpublic void mousePressed(java.awt.event.MouseEvent arg0)
mousePressed in interface java.awt.event.MouseListenermousePressed in class java.awt.event.MouseAdapterpublic void mouseReleased(java.awt.event.MouseEvent arg0)
mouseReleased in interface java.awt.event.MouseListenermouseReleased in class java.awt.event.MouseAdapterpublic void setEnabled(boolean enabled)
enabled - a booleanpublic boolean isEnabled()