소스 검색

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 7 년 전
부모
커밋
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);