X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=plugins%2Fnet.mograsim.logic.model%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fmodel%2Fmodel%2Fcomponents%2Fatomic%2FModelManualSwitch.java;h=f495b4e9ea80dc65bd488b5c6c43808bee6256ad;hb=5711229bc04a9495a84f09f6baf446283f228923;hp=d4e04376f732a88fbe43b6c77677c4e1eb22105d;hpb=69ec19d54ceb6d5abbb8b4faa55284af22174859;p=Mograsim.git diff --git a/plugins/net.mograsim.logic.model/src/net/mograsim/logic/model/model/components/atomic/ModelManualSwitch.java b/plugins/net.mograsim.logic.model/src/net/mograsim/logic/model/model/components/atomic/ModelManualSwitch.java index d4e04376..f495b4e9 100644 --- a/plugins/net.mograsim.logic.model/src/net/mograsim/logic/model/model/components/atomic/ModelManualSwitch.java +++ b/plugins/net.mograsim.logic.model/src/net/mograsim/logic/model/model/components/atomic/ModelManualSwitch.java @@ -29,7 +29,7 @@ import net.mograsim.preferences.Preferences; public class ModelManualSwitch extends ModelComponent { private static final double width = 20; - private static final double height = 15; + private static final double height = 10; private static final double fontHeight = 5; private static final double heightMiniButtons = 4; // 0 is disabled @@ -142,7 +142,7 @@ public class ModelManualSwitch extends ModelComponent if (foreground != null) gc.setForeground(foreground); gc.drawRectangle(getBounds()); - String label = BitVectorFormatter.formatAsString(manualSwitch == null ? null : getOutValues()); + String label = BitVectorFormatter.formatAsString(manualSwitch == null ? null : getOutValues(), false); Font oldFont = gc.getFont(); Font labelFont = new Font(oldFont.getName(), fontHeight, oldFont.getStyle()); gc.setFont(labelFont);