|
@@ -43,6 +43,20 @@ public class Control {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ /* Operations for searching */
|
|
|
+
|
|
|
+ public CpsObject searchByID(int ID) {
|
|
|
+ return searchController.searchByID(ID);
|
|
|
+ }
|
|
|
+
|
|
|
+ public CpsObject searchCategoryObject(String category, String object) {
|
|
|
+ return searchController.searchHolonObject(object, searchController.searchCategory(category).getObjects());
|
|
|
+ }
|
|
|
+
|
|
|
+ public CpsObject searchCanvasObject(String object) {
|
|
|
+ return searchController.searchHolonObject(object, MODEL.getObjectsOnCanvas());
|
|
|
+ }
|
|
|
+
|
|
|
/* Operations for Categories and Objects */
|
|
|
public void addCategory(String cat) {
|
|
|
categoryController.addNewCategory(cat);
|
|
@@ -94,7 +108,7 @@ public class Control {
|
|
|
objectController.setSelectedObjectID(id);
|
|
|
}
|
|
|
|
|
|
- public void deleteObjectOnCanvas(CpsObject obj) {
|
|
|
+ public void delCanvasObject(CpsObject obj) {
|
|
|
canvasController.deleteObjectOnCanvas(obj);
|
|
|
}
|
|
|
|
|
@@ -115,14 +129,6 @@ public class Control {
|
|
|
objectController.deleteElement(obj, ele);
|
|
|
}
|
|
|
|
|
|
- public CpsObject searchByID(int ID) {
|
|
|
- return searchController.searchByID(ID);
|
|
|
- }
|
|
|
-
|
|
|
- public CpsObject searchObject(String category, String object) {
|
|
|
- return searchController.searchHolonObject(object, searchController.searchCategory(category).getObjects());
|
|
|
- }
|
|
|
-
|
|
|
/* Global Operations */
|
|
|
public int getScale() {
|
|
|
return globalController.getScale();
|