improves the input shape in case the input is set to high-z and is working like an output.

This commit is contained in:
hneemann 2019-12-13 08:29:27 +01:00
parent e923a9a440
commit 243f49b83d

View File

@ -120,8 +120,11 @@ public class InputShape implements Shape {
if (value != null) {
style = Style.getWireStyle(value);
if (value.getBits() > 1) {
Value v = value;
if (inValue != null)
v = inValue;
Vector textPos = new Vector(-1 - OUT_SIZE, -4 - OUT_SIZE);
graphic.drawText(textPos, format.formatToView(value), Orientation.CENTERBOTTOM, Style.NORMAL);
graphic.drawText(textPos, format.formatToView(v), Orientation.CENTERBOTTOM, Style.NORMAL);
} else {
if (inValue != null && !inValue.isEqual(value))
graphic.drawPolygon(box, Style.getWireStyle(inValue));