projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added concept of wire width to GUIComponents and GUIWires
[Mograsim.git]
/
LogicUI
/
src
/
era
/
mi
/
gui
/
examples
/
Playground.java
diff --git
a/LogicUI/src/era/mi/gui/examples/Playground.java
b/LogicUI/src/era/mi/gui/examples/Playground.java
index
78524b7
..
372381a
100644
(file)
--- a/
LogicUI/src/era/mi/gui/examples/Playground.java
+++ b/
LogicUI/src/era/mi/gui/examples/Playground.java
@@
-25,9
+25,9
@@
public class Playground
public static void addComponentsAndWires(LogicUIStandalone ui, ViewModel model)
{
public static void addComponentsAndWires(LogicUIStandalone ui, ViewModel model)
{
- GUIAndGate andGate = new GUIAndGate(model);
+ GUIAndGate andGate = new GUIAndGate(model
, 1
);
andGate.moveTo(10, 10);
andGate.moveTo(10, 10);
- GUINotGate notGate = new GUINotGate(model);
+ GUINotGate notGate = new GUINotGate(model
, 1
);
notGate.moveTo(10, 40);
new GUIWire(model, andGate.getPins().get(0), notGate.getPins().get(1), new Point(20, 50));
notGate.moveTo(10, 40);
new GUIWire(model, andGate.getPins().get(0), notGate.getPins().get(1), new Point(20, 50));