projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
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
diff --git
a/net.mograsim.logic.model/src/net/mograsim/logic/model/model/components/atomic/SimpleRectangularHardcodedModelComponent.java
b/net.mograsim.logic.model/src/net/mograsim/logic/model/model/components/atomic/SimpleRectangularHardcodedModelComponent.java
index
b395695
..
8971285
100644
(file)
--- a/
net.mograsim.logic.model/src/net/mograsim/logic/model/model/components/atomic/SimpleRectangularHardcodedModelComponent.java
+++ b/
net.mograsim.logic.model/src/net/mograsim/logic/model/model/components/atomic/SimpleRectangularHardcodedModelComponent.java
@@
-40,7
+40,12
@@
public abstract class SimpleRectangularHardcodedModelComponent extends ModelComp
public SimpleRectangularHardcodedModelComponent(LogicModelModifiable model, String id, String name, String centerText)
{
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();
this.id = id;
this.outlineRenderer = new DefaultOutlineRenderer(this);
CenteredTextParams centeredTextParams = new CenteredTextParams();
@@
-79,6
+84,9
@@
public abstract class SimpleRectangularHardcodedModelComponent extends ModelComp
recalculate.run();
}
});
recalculate.run();
}
});
+
+ if (callInit)
+ init();
}
// pins
}
// pins