Made ModelBitDisplay/ManualSwitch smaller
[Mograsim.git] / plugins / net.mograsim.logic.model / src / net / mograsim / logic / model / model / components / atomic / ModelManualSwitch.java
index d4e0437..f495b4e 100644 (file)
@@ -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);