public class LocationOnDragTracker
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static LocationOnDragTracker |
startDrag(java.awt.event.MouseEvent pressEvent)
Creates and returns an instance encapsulating info about a drag start by the provided
MouseEvent.MOUSE_PRESSED event. |
void |
updateLocationOnDrag(java.awt.Component draggedComp)
Updates the location of the dragged component on drag progress.
|
public static LocationOnDragTracker startDrag(java.awt.event.MouseEvent pressEvent)
MouseEvent.MOUSE_PRESSED
event.public void updateLocationOnDrag(java.awt.Component draggedComp)