public void DragBegin(int oldX, int oldY, DragAble component) { OldX = oldX; OldY = oldY; preX = currentX; preY = currentY; componentOnDrag = component; }
public void DragEnd() { componentOnDrag.DragReleased(preX, preY); OldX = 0; OldY = 0; preX = 0; preY = 0; componentOnDrag = null; }