Package icyllis.modernui.view
Class View.DragShadow
java.lang.Object
icyllis.modernui.view.View.DragShadow
- Enclosing class:
View
Creates an image that the system displays during the drag and drop operation.
-
Constructor Summary
ConstructorDescriptionConstruct a shadow builder object with no associated View.DragShadow
(View view) -
Method Summary
Modifier and TypeMethodDescriptionfinal View
getView()
void
onDrawShadow
(Canvas canvas) Draw the shadow.void
onProvideShadowCenter
(Point outShadowCenter) Called when the view is not mouse hovered or shadow is nonnull, to determine where the mouse cursor position is in the shadow.
-
Constructor Details
-
DragShadow
-
DragShadow
public DragShadow()Construct a shadow builder object with no associated View. This constructor variant is only useful when theonProvideShadowCenter(Point)
} andonDrawShadow(Canvas)
methods are also overridden in order to supply the drag shadow's dimensions and appearance without reference to any View object.
-
-
Method Details
-
getView
-
onProvideShadowCenter
Called when the view is not mouse hovered or shadow is nonnull, to determine where the mouse cursor position is in the shadow.- Parameters:
outShadowCenter
- the center point in the shadow
-
onDrawShadow
Draw the shadow.- Parameters:
canvas
- canvas to draw content
-