ewe.ui
Class DragContext.ImageDragInWindow

java.lang.Object
  extended byewe.ui.DragContext.ImageDragInWindow
Enclosing class:
DragContext

public static class DragContext.ImageDragInWindow
extends Object


Field Summary
 boolean clearPendingDrags
          By default this is true.
 Rect dragLimits
          If this is not null the image will be limited to being within this area.
 IImage image
          This is the image being dragged.
 Point imagePos
          This is the location of the last valid drag.
 Point relativeImagePos
          This is the position of the top-left of the image, relative to the top left of the Control.
 
Constructor Summary
DragContext.ImageDragInWindow(IImage image, Point cursorOffsetInImage, Control relativeTo, Window window)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, toString
 

Field Detail

dragLimits

public Rect dragLimits
If this is not null the image will be limited to being within this area.


image

public IImage image
This is the image being dragged.


clearPendingDrags

public boolean clearPendingDrags
By default this is true. It will cause a clearPendingDrags() to be called on the DragContext after each redrawing of the image on the window.


imagePos

public Point imagePos
This is the location of the last valid drag. It is null initially but wil be updated after the first dragImage() call to the DragContext. This is not the actual x,y position of the top left of the image, but the position of the last pen/mouse pointer.


relativeImagePos

public Point relativeImagePos
This is the position of the top-left of the image, relative to the top left of the Control.

Constructor Detail

DragContext.ImageDragInWindow

public DragContext.ImageDragInWindow(IImage image,
                                     Point cursorOffsetInImage,
                                     Control relativeTo,
                                     Window window)