canvas
Interface DragComponent

All Known Implementing Classes:
DrawingPane, DropDragShapeComponent, PictureComponent

public interface DragComponent

This interface should be implemented by any objects that are meant to be drag and drop objects. All DropDragShapeComponents and DrawingPanes already implement this interface.


Method Summary
 boolean acceptDrop(Object o)
          Returns whether the given object was accepted in a drop attempt.
 Object manufactureDroppable()
          Creates an Object to be dragged and dropped elsewhere
 boolean okToDrag()
          Returns whether it's OK to drag this object
 void resetBorder()
           
 void setBorder(Border border)
           
 

Method Detail

okToDrag

public boolean okToDrag()
Returns whether it's OK to drag this object


manufactureDroppable

public Object manufactureDroppable()
Creates an Object to be dragged and dropped elsewhere


acceptDrop

public boolean acceptDrop(Object o)
Returns whether the given object was accepted in a drop attempt.


resetBorder

public void resetBorder()

setBorder

public void setBorder(Border border)