|
@@ -9,8 +9,8 @@ import classes.Category;
|
|
|
import classes.CpsEdge;
|
|
|
import classes.AbstractCpsObject;
|
|
|
import classes.HolonElement;
|
|
|
-import Interfaces.CategoryListener;
|
|
|
-import Interfaces.ObjectListener;
|
|
|
+import interfaces.CategoryListener;
|
|
|
+import interfaces.ObjectListener;
|
|
|
import ui.view.Console;
|
|
|
|
|
|
/**
|
|
@@ -23,8 +23,8 @@ import ui.view.Console;
|
|
|
public class Model {
|
|
|
|
|
|
// Global Variables
|
|
|
- private int CANVAS_X;
|
|
|
- private int CANVAS_Y;
|
|
|
+ private int canvasX = 1000;
|
|
|
+ private int canvasY = 1000;
|
|
|
private static int sCALE = 50; // Picture Scale
|
|
|
private static int sCALEdIV2 = sCALE / 2;
|
|
|
private static final int ITERATIONS = 100;
|
|
@@ -521,30 +521,38 @@ public class Model {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * Get Canvas X Size.
|
|
|
+ *
|
|
|
* @return the cANVAS_X
|
|
|
*/
|
|
|
- public int getCANVAS_X() {
|
|
|
- return CANVAS_X;
|
|
|
+ public int getCanvasX() {
|
|
|
+ return canvasX;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @param cANVAS_X the cANVAS_X to set
|
|
|
+ * Set Canvas X Size.
|
|
|
+ *
|
|
|
+ * @param canvasX the cANVAS_X to set
|
|
|
*/
|
|
|
- public void setCANVAS_X(int cANVAS_X) {
|
|
|
- CANVAS_X = cANVAS_X;
|
|
|
+ public void setCanvasX(int canvasX) {
|
|
|
+ this.canvasX = canvasX;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * get Canvas Y size.
|
|
|
+ *
|
|
|
* @return the cANVAS_Y
|
|
|
*/
|
|
|
- public int getCANVAS_Y() {
|
|
|
- return CANVAS_Y;
|
|
|
+ public int getCanvasY() {
|
|
|
+ return canvasY;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @param cANVAS_Y the cANVAS_Y to set
|
|
|
+ * Set Canvas Y size.
|
|
|
+ *
|
|
|
+ * @param canvasY the cANVAS_Y to set
|
|
|
*/
|
|
|
- public void setCANVAS_Y(int cANVAS_Y) {
|
|
|
- CANVAS_Y = cANVAS_Y;
|
|
|
+ public void setCanvasY(int canvasY) {
|
|
|
+ this.canvasY = canvasY;
|
|
|
}
|
|
|
}
|