simplified component framework

This commit is contained in:
bancika
2011-01-05 00:20:09 +00:00
parent 69acfcff2f
commit dd50ccf785
12 changed files with 55 additions and 50 deletions
@@ -18,7 +18,7 @@ import org.diylc.core.IDIYComponent;
*
* @author Branislav Stojkovic
*/
public class ComponentSelection extends ArrayList<IDIYComponent> implements Transferable {
public class ComponentSelection extends ArrayList<IDIYComponent<?>> implements Transferable {
private static final long serialVersionUID = 1L;
@@ -28,7 +28,7 @@ public class ComponentSelection extends ArrayList<IDIYComponent> implements Tran
super();
}
public ComponentSelection(Collection<IDIYComponent> selectedComponents) {
public ComponentSelection(Collection<IDIYComponent<?>> selectedComponents) {
super(selectedComponents);
}
@@ -174,7 +174,7 @@ public interface IPlugInPort {
*
* @return
*/
Area getComponentArea(IDIYComponent component);
Area getComponentArea(IDIYComponent<?> component);
/**
* Notification that drag has been started from the specified point.
@@ -217,7 +217,7 @@ public interface IPlugInPort {
* @param components
* @param preferredPoint
*/
void addComponents(List<IDIYComponent> components, Point preferredPoint);
void addComponents(List<IDIYComponent<?>> components, Point preferredPoint);
/**
* Checks if a certain layer is locked for editing.