|
@@ -200,7 +200,7 @@ public class LoadController {
|
|
HolonElement ele = new HolonElement(next(i), Integer.parseInt(next(i)), Float.parseFloat(next(i)));
|
|
HolonElement ele = new HolonElement(next(i), Integer.parseInt(next(i)), Float.parseFloat(next(i)));
|
|
|
|
|
|
if (sav.equals("CVS")) {
|
|
if (sav.equals("CVS")) {
|
|
- ele.setActive(compare(Integer.parseInt(next(i))));
|
|
|
|
|
|
+ ele.setActive(convert(Integer.parseInt(next(i))));
|
|
objC.addElementIntoCanvasObject((HolonObject) mpC.searchByID(Integer.parseInt(obj)), ele);
|
|
objC.addElementIntoCanvasObject((HolonObject) mpC.searchByID(Integer.parseInt(obj)), ele);
|
|
} else
|
|
} else
|
|
objC.addElementIntoCategoryObject(sav, obj, ele);
|
|
objC.addElementIntoCategoryObject(sav, obj, ele);
|
|
@@ -240,15 +240,19 @@ public class LoadController {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- *
|
|
|
|
|
|
+ * Get the Next Element from an Iterator
|
|
* @param i
|
|
* @param i
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
public String next(Iterator<Object> i) {
|
|
public String next(Iterator<Object> i) {
|
|
return i.next().toString();
|
|
return i.next().toString();
|
|
}
|
|
}
|
|
-
|
|
|
|
- public boolean compare(int x) {
|
|
|
|
|
|
+ /**
|
|
|
|
+ * converting saved Integers into Booleans
|
|
|
|
+ * @param x
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ public boolean convert(int x) {
|
|
return x == 1 ? true : false;
|
|
return x == 1 ? true : false;
|
|
}
|
|
}
|
|
|
|
|