Procházet zdrojové kódy

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 před 6 roky
rodič
revize
2ef9836ccc
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  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);