Package com.simsilica.lemur.dnd
Interface Draggable
- All Known Implementing Classes:
DefaultDraggable
public interface Draggable
Implemented to provide a visual indicator of the dragged object.
This may be an icon, text, or a 3D object, essentially whatever
the application wishes as long as its location and status can
be indicated to the user in some way.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the current location of the draggable in camera/viewport space.void
release()
Called when the drag session is done and the Draggable can clean up any of its internal stuff.void
setLocation
(float x, float y) Called by the drag session to update the position of the draggable in camera/viewport space.void
updateDragStatus
(DragStatus status) Called by the drag session to update the drag status.
-
Method Details
-
setLocation
void setLocation(float x, float y) Called by the drag session to update the position of the draggable in camera/viewport space. -
getLocation
Vector2f getLocation()Returns the current location of the draggable in camera/viewport space. -
updateDragStatus
Called by the drag session to update the drag status. -
release
void release()Called when the drag session is done and the Draggable can clean up any of its internal stuff.
-