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.
-
accept(Figure)
- Returns true if figure can be dropped onto this.
-
drop(Figure)
- Drop a figure onto this.
accept
public abstract boolean accept(Figure figure)
- Returns true if figure can be dropped onto this.
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