Преглед на файлове

Saving works. Added comment on constant use to IGraphedElement(IGE).

You can now change the constant "STRETCH_BY_DEFAULT" in IGE,
to set whether graphed elements should "use global" when created.
This depends on a properly implemente dconstructor for these, however.
Ludwig Tietze преди 6 години
родител
ревизия
2ef9836ccc
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      src/classes/HolonElement.java

+ 3 - 1
src/classes/HolonElement.java

@@ -87,7 +87,9 @@ public class HolonElement implements IGraphedElement{
      */
     public HolonElement(String eleName, int amount, float energy, int id, Model model){
     	setLocalPeriod(model.getGraphIterations());
-    	setStretching(IGraphedElement.STRETCH_BY_DEFAULT);
+    	setStretching(IGraphedElement.STRETCH_BY_DEFAULT);	//Change this to set whether
+    														//HolonElements and -Switches
+    														//"use global" by default
     	setEleName(eleName);
         setAmount(amount);
         setEnergyPerElement(energy);