The line dash of singlebit wires changes according to their value
[Mograsim.git] / plugins / net.mograsim.logic.model / src / net / mograsim / logic / model / model / wires / ModelWire.java
index 813f06d..130389f 100644 (file)
@@ -373,7 +373,9 @@ public class ModelWire
                if (wireColor != null)
                        gc.setForeground(ColorManager.current().toColor(wireColor));
                gc.setLineWidth(renderPrefs.getDouble(logicWidth == 1 ? WIRE_WIDTH_SINGLEBIT : WIRE_WIDTH_MULTIBIT));
+               gc.setLineDash(BitVectorFormatter.formatAsLineDash(renderPrefs, end));
                gc.drawPolyline(effectivePath);
+               gc.setLineDash(null);
                gc.setLineWidth(renderPrefs.getDouble(DEFAULT_LINE_WIDTH));
        }