better d&d of control points

doc
This commit is contained in:
bancika
2011-01-06 00:23:59 +00:00
parent b33d1c3e37
commit e612b39b26
10 changed files with 124 additions and 70 deletions
@@ -23,11 +23,12 @@ public class ComponentType {
@SuppressWarnings("unchecked")
private Class<? extends IDIYComponent> instanceClass;
private ComponentLayer layer;
private boolean stretchable;
@SuppressWarnings("unchecked")
public ComponentType(String name, String description, String category, String namePrefix,
String author, Icon icon, Class<? extends IDIYComponent> instanceClass,
ComponentLayer layer) {
ComponentLayer layer, boolean stretchable) {
super();
this.name = name;
this.description = description;
@@ -37,6 +38,7 @@ public class ComponentType {
this.icon = icon;
this.instanceClass = instanceClass;
this.layer = layer;
this.stretchable = stretchable;
}
public String getName() {
@@ -72,6 +74,10 @@ public class ComponentType {
return layer;
}
public boolean isStretchable() {
return stretchable;
}
@Override
public String toString() {
return name;