// creation and destruction
- public SimpleRectangularHardcodedModelComponent(LogicModelModifiable model, String id, String name, String centerText)
+ public SimpleRectangularHardcodedModelComponent(LogicModelModifiable model, String id, String name, String centerText, boolean callInit)
{
- super(model, name);
+ super(model, name, false);
this.id = id;
this.outlineRenderer = new DefaultOutlineRenderer(this);
CenteredTextParams centeredTextParams = new CenteredTextParams();
recalculate.run();
}
});
+
+ if (callInit)
+ init();
}
// pins