org.nakedobjects.plugins.dnd.viewer.basic
Class ResizeDrag
java.lang.Object
org.nakedobjects.plugins.dnd.PointerEvent
org.nakedobjects.plugins.dnd.Drag
org.nakedobjects.plugins.dnd.InternalDrag
org.nakedobjects.plugins.dnd.viewer.basic.ResizeDrag
public class ResizeDrag
- extends InternalDrag
|
Method Summary |
void |
cancel(Viewer viewer)
Indicates the drag has been cancelled; no action should be taken. |
void |
drag(View target,
Location location,
int mods)
Indicates that the drag state has changed. |
void |
end(Viewer viewer)
Indicates the drag has properly ended (the mouse button has been released) |
int |
getDirection()
|
Location |
getLocation()
Gets the location of the pointer relative to the view. |
View |
getOverlay()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BOTTOM
public static final int BOTTOM
- See Also:
- Constant Field Values
BOTTOM_LEFT
public static final int BOTTOM_LEFT
- See Also:
- Constant Field Values
BOTTOM_RIGHT
public static final int BOTTOM_RIGHT
- See Also:
- Constant Field Values
LEFT
public static final int LEFT
- See Also:
- Constant Field Values
RIGHT
public static final int RIGHT
- See Also:
- Constant Field Values
TOP
public static final int TOP
- See Also:
- Constant Field Values
TOP_LEFT
public static final int TOP_LEFT
- See Also:
- Constant Field Values
TOP_RIGHT
public static final int TOP_RIGHT
- See Also:
- Constant Field Values
ResizeDrag
public ResizeDrag(View view,
Bounds resizeArea,
int direction)
ResizeDrag
public ResizeDrag(View view,
Bounds resizeArea,
int direction,
Size minimumSize,
Size maximumSize)
cancel
public void cancel(Viewer viewer)
- Description copied from class:
Drag
- Indicates the drag has been cancelled; no action should be taken.
- Specified by:
cancel in class Drag
drag
public void drag(View target,
Location location,
int mods)
- Description copied from class:
Drag
- Indicates that the drag state has changed.
- Specified by:
drag in class Drag
end
public void end(Viewer viewer)
- Description copied from class:
Drag
- Indicates the drag has properly ended (the mouse button has been released)
- Specified by:
end in class Drag
getDirection
public int getDirection()
getLocation
public Location getLocation()
- Description copied from class:
InternalDrag
- Gets the location of the pointer relative to the view.
- Specified by:
getLocation in class InternalDrag
getOverlay
public View getOverlay()
- Specified by:
getOverlay in class Drag
Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.