1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- package ui.model;
- import java.util.ArrayList;
- import ui.controller.*;
- public class Model {
-
- //eventuell wenn Canvasgröße gewählt werden kann
- private int HEIGHT;
- private int WIDTH;
-
- private ArrayList<Category> Categories;
- private ArrayList<CpsObject> ObjectsOnCanvas;
-
-
- public Model(){
- setCategories(new ArrayList<Category>());
- setObjectsOnCanvas(new ArrayList<CpsObject>());
- }
- /**
- * @return the categories
- */
- public ArrayList<Category> getCategories() {
- return Categories;
- }
- /**
- * @param categories the categories to set
- */
- public void setCategories(ArrayList<Category> categories) {
- Categories = categories;
- }
- /**
- * @return the objectsOnCanvas
- */
- public ArrayList<CpsObject> getObjectsOnCanvas() {
- return ObjectsOnCanvas;
- }
- /**
- * @param objectsOnCanvas the objectsOnCanvas to set
- */
- public void setObjectsOnCanvas(ArrayList<CpsObject> objectsOnCanvas) {
- ObjectsOnCanvas = objectsOnCanvas;
- }
-
-
-
-
- }
|