All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface CH.ifa.draw.framework.Draggable

public interface Draggable
A draggable object may need to notify its dependants when it is being dragged. The interface provides methods for signalling that an object is about to be dragged (i.e. selected for drag), it is being dragged (mouseDrag), and released (mouseUp). This gives the possibility to distribure the responsibility of managing a dragging transaction between tools and dragged figures.


Method Index

 o beginDrag(MouseEvent)
Tell this that it is about to be dragged.
 o dragged(MouseEvent)
Tell this that it has been dragged.
 o endDrag(MouseEvent)
The drag transaction is over.
 o inTransit()
Answer true if this is the target of a drag transaction at the moment (being dragged).

Methods

 o beginDrag
 public abstract void beginDrag(MouseEvent e)
Tell this that it is about to be dragged.

 o dragged
 public abstract void dragged(MouseEvent e)
Tell this that it has been dragged.

 o endDrag
 public abstract void endDrag(MouseEvent e)
The drag transaction is over.

 o inTransit
 public abstract boolean inTransit()
Answer true if this is the target of a drag transaction at the moment (being dragged).


All Packages  Class Hierarchy  This Package  Previous  Next  Index