| edu.hws.jcm.draw.Draggable
All known Subclasses: edu.hws.jcm.draw.DraggablePoint,
Draggable | public interface Draggable (Code) | | An interface that can be implemented by an object that can be dragged
with the mouse.
|
Method Summary | |
public void | continueDrag(MouseEvent evt) Continue a drag that was started in startDrag(). | public void | finishDrag(MouseEvent evt) Finish a draw that was started in startDrag(). | public boolean | startDrag(MouseEvent evt) Tell the object that a drag operation might be beginning.
The Draggable object can decide whether it really wants
to be dragged, based on the MouseEvent. |
continueDrag | public void continueDrag(MouseEvent evt)(Code) | | Continue a drag that was started in startDrag(). Presumably
the event is a mouseDragged event.
|
finishDrag | public void finishDrag(MouseEvent evt)(Code) | | Finish a draw that was started in startDrag(). Presumably
the event is a mouseReleased event.
|
startDrag | public boolean startDrag(MouseEvent evt)(Code) | | Tell the object that a drag operation might be beginning.
The Draggable object can decide whether it really wants
to be dragged, based on the MouseEvent. It should return
true to indicate that a drag should really be started, and
false if it wants to ignore the MouseEvent.
|
|
|