X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.core%2Ftest%2Fnet%2Fmograsim%2Flogic%2Fcore%2Ftests%2FGUITest.java;h=86eb115d467a304e91eb8232be3d8b16d2161fb5;hb=6345e8d7c88792fb1f92eb490e43b0decc15bf0f;hp=544b064fe5bfc1122dcbb4854aa715c5ee91cc61;hpb=c9e5a301f6925386a62e77a84ba4d9b1b6f43aae;p=Mograsim.git diff --git a/net.mograsim.logic.core/test/net/mograsim/logic/core/tests/GUITest.java b/net.mograsim.logic.core/test/net/mograsim/logic/core/tests/GUITest.java index 544b064f..86eb115d 100644 --- a/net.mograsim.logic.core/test/net/mograsim/logic/core/tests/GUITest.java +++ b/net.mograsim.logic.core/test/net/mograsim/logic/core/tests/GUITest.java @@ -66,7 +66,7 @@ public class GUITest extends JPanel { if (dim.getValue().contains(e.getPoint())) { - dim.getKey().switchOff(); + dim.getKey().switchFullOff(); repaint(); } } @@ -79,7 +79,7 @@ public class GUITest extends JPanel { if (dim.getValue().contains(e.getPoint())) { - dim.getKey().switchOn(); + dim.getKey().switchFullOn(); repaint(); } } @@ -220,7 +220,7 @@ public class GUITest extends JPanel switchMap.put(ms, r); } - g.setColor(ms.isOn() ? Color.getHSBColor(.3f, .5f, 1f) : Color.WHITE); + g.setColor(ms.isFullOn() ? Color.getHSBColor(.3f, .5f, 1f) : Color.WHITE); g.fillRect(x1, y1, x2 - x1 + 1, y2 - y1 + 1); setBlack(g); g.drawRect(x1, y1, x2 - x1 + 1, y2 - y1 + 1);