Teh-Hai Julian Zheng 8 سال پیش
والد
کامیت
e5a739b298
3فایلهای تغییر یافته به همراه0 افزوده شده و 80 حذف شده
  1. 0 31
      Model.java
  2. 0 32
      src/ui/controller/Category.java
  3. 0 17
      src/ui/controller/Position.java

+ 0 - 31
Model.java

@@ -1,31 +0,0 @@
-package ui.model;
-
-import java.util.ArrayList;
-
-import ui.controller.*;
-
-public class Model {
-	private ArrayList<Category> Categories;
-	private ArrayList<HolonObject> ObjectsOnCanvas;
-	
-	public Model(){
-		Categories = new ArrayList<Category>();
-		ObjectsOnCanvas = new ArrayList<HolonObject>();
-	}
-	
-	public void addCategory(Category toAdd){
-		Categories.add(toAdd);
-	}
-	
-	public void deleteCategory(int idx){
-		Categories.remove(idx);
-	}
-	
-	public void addObject(HolonObject toAdd){
-		ObjectsOnCanvas.add(toAdd);
-	}
-	
-	public void deleteObject(int idx){
-		ObjectsOnCanvas.remove(idx);
-	}
-}

+ 0 - 32
src/ui/controller/Category.java

@@ -1,32 +0,0 @@
-package ui.controller;
-
-import java.util.ArrayList;
-
-public class Category {
-	private ArrayList<HolonObject> objects;
-	private String name;
-	
-	public Category(String name){
-		this.name = name;
-	}
-	
-	public void addObject(HolonObject toAdd){
-		objects.add(toAdd);
-	}
-	
-	public void deleteObject(int idx){
-		objects.remove(idx);
-	}
-	
-	public ArrayList<HolonObject> getObjects(){
-		return objects;
-	}
-	
-	public void changeName(String name){
-		this.name = name;
-	}
-	
-	public String getName(){
-		return name;
-	}
-}

+ 0 - 17
src/ui/controller/Position.java

@@ -1,17 +0,0 @@
-package ui.controller;
-
-public class Position {
-	public int x;
-	public int y;
-	
-	public Position(int x, int y){
-		this.x = x;
-		this.y = y;
-	}
-	
-	//default Constructor
-	public Position(){
-		this.x = -1;
-		this.y = -1;
-	}
-}