org.nakedobjects.plugins.dnd.viewer.basic
Class ResizeDrag

java.lang.Object
  extended by org.nakedobjects.plugins.dnd.PointerEvent
      extended by org.nakedobjects.plugins.dnd.Drag
          extended by org.nakedobjects.plugins.dnd.InternalDrag
              extended by org.nakedobjects.plugins.dnd.viewer.basic.ResizeDrag

public class ResizeDrag
extends InternalDrag


Field Summary
static int BOTTOM
           
static int BOTTOM_LEFT
           
static int BOTTOM_RIGHT
           
static int LEFT
           
static int RIGHT
           
static int TOP
           
static int TOP_LEFT
           
static int TOP_RIGHT
           
 
Fields inherited from class org.nakedobjects.plugins.dnd.PointerEvent
mods
 
Constructor Summary
ResizeDrag(View view, Bounds resizeArea, int direction)
           
ResizeDrag(View view, Bounds resizeArea, int direction, Size minimumSize, Size maximumSize)
           
 
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 org.nakedobjects.plugins.dnd.PointerEvent
button1, button2, button3, isAlt, isCtrl, isMeta, isShift, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

ResizeDrag

public ResizeDrag(View view,
                  Bounds resizeArea,
                  int direction)

ResizeDrag

public ResizeDrag(View view,
                  Bounds resizeArea,
                  int direction,
                  Size minimumSize,
                  Size maximumSize)
Method Detail

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.