com.doffman.dragarea
Interface DragShadowBuilder


public interface DragShadowBuilder

Interface for drawing the drag shadow during a drag operation.


Method Summary
 View getView()
          Returns the View object that started the drag operation.
 void onDraw(Canvas c)
          Called to draw the shadow image.
 void onProvideShadowMetrics(Point shadowSize, Point shadowTouchPoint)
          Provides the size and touch point of the shadow image.
 

Method Detail

getView

View getView()
Returns the View object that started the drag operation.

Returns:
The View object associated with this ShadowBuilder.

onProvideShadowMetrics

void onProvideShadowMetrics(Point shadowSize,
                            Point shadowTouchPoint)
Provides the size and touch point of the shadow image. The size and touch point of the image is where in the image should be placed beneath the touch point in the drag operation.


onDraw

void onDraw(Canvas c)
Called to draw the shadow image.

Parameters:
canvas - A Canvas object to draw the drag shadow to.