projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Restructured ComponentAdapter; added ManualSwitchAdapter
[Mograsim.git]
/
LogicUI
/
src
/
era
/
mi
/
gui
/
model
/
components
/
GUIManualSwitch.java
diff --git
a/LogicUI/src/era/mi/gui/model/components/GUIManualSwitch.java
b/LogicUI/src/era/mi/gui/model/components/GUIManualSwitch.java
index
546b17e
..
b215cff
100644
(file)
--- a/
LogicUI/src/era/mi/gui/model/components/GUIManualSwitch.java
+++ b/
LogicUI/src/era/mi/gui/model/components/GUIManualSwitch.java
@@
-16,6
+16,8
@@
public class GUIManualSwitch extends GUIComponent
private static final double height = 15;
private static final double fontHeight = 5;
private static final double height = 15;
private static final double fontHeight = 5;
+ private final Pin outputPin;
+
private ManualSwitch logicSwitch;
private ReadEnd end;
private ManualSwitch logicSwitch;
private ReadEnd end;
@@
-23,7
+25,7
@@
public class GUIManualSwitch extends GUIComponent
{
super(model);
setSize(width, height);
{
super(model);
setSize(width, height);
- addPin(
new Pin(this
, width, height / 2));
+ addPin(
this.outputPin = new Pin(this, 1
, width, height / 2));
}
@Override
}
@Override
@@
-53,4
+55,9
@@
public class GUIManualSwitch extends GUIComponent
logicSwitch.toggle();
return true;
}
logicSwitch.toggle();
return true;
}
+
+ public Pin getOutputPin()
+ {
+ return outputPin;
+ }
}
\ No newline at end of file
}
\ No newline at end of file