All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface CH.ifa.draw.framework.DropTarget

public interface DropTarget
Figures indicate whether other figures can be dropped onto them by implementing this interface. A DropTarget can refuse drops selectively based on the properties (or types) of dropped Figures.


Method Index

 o accept(Figure)
Returns true if figure can be dropped onto this.
 o drop(Figure)
Drop a figure onto this.

Methods

 o accept
 public abstract boolean accept(Figure figure)
Returns true if figure can be dropped onto this.

 o drop
 public abstract Figure drop(Figure figure)
Drop a figure onto this.

Parameters:
the - figure to drop
Returns:
the dropped Figure

All Packages  Class Hierarchy  This Package  Previous  Next  Index