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.
-
beginDrag(MouseEvent)
- Tell this that it is about to be dragged.
-
dragged(MouseEvent)
- Tell this that it has been dragged.
-
endDrag(MouseEvent)
- The drag transaction is over.
-
inTransit()
- Answer true if this is the target of a drag transaction at the
moment (being dragged).
beginDrag
public abstract void beginDrag(MouseEvent e)
- Tell this that it is about to be dragged.
dragged
public abstract void dragged(MouseEvent e)
- Tell this that it has been dragged.
endDrag
public abstract void endDrag(MouseEvent e)
- The drag transaction is over.
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