Fixed a bug in Am2900; created dlatch8/80; relayouted some components
[Mograsim.git] / net.mograsim.logic.model / src / net / mograsim / logic / model / model / components / atomic / SimpleRectangularHardcodedModelComponent.java
index b395695..8971285 100644 (file)
@@ -40,7 +40,12 @@ public abstract class SimpleRectangularHardcodedModelComponent extends ModelComp
 
        public SimpleRectangularHardcodedModelComponent(LogicModelModifiable model, String id, String name, String centerText)
        {
-               super(model, name);
+               this(model, id, name, centerText, true);
+       }
+
+       public SimpleRectangularHardcodedModelComponent(LogicModelModifiable model, String id, String name, String centerText, boolean callInit)
+       {
+               super(model, name, false);
                this.id = id;
                this.outlineRenderer = new DefaultOutlineRenderer(this);
                CenteredTextParams centeredTextParams = new CenteredTextParams();
@@ -79,6 +84,9 @@ public abstract class SimpleRectangularHardcodedModelComponent extends ModelComp
                                recalculate.run();
                        }
                });
+
+               if (callInit)
+                       init();
        }
 
        // pins