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=8c26f70ef8444eae412b35805de3fd43fe3ef345;hp=544b064fe5bfc1122dcbb4854aa715c5ee91cc61;hpb=bece76750849d1c9374aaa3772dcad552527f60b;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);