logicObs = (i) -> requestRedraw();
setSize(width, height);
- addPin(this.inputPin = new Pin(this, 1, 0, height / 2));
+ addPin(this.inputPin = new Pin(this, "", 1, 0, height / 2));
}
@Override
double posX = getBounds().x;
double posY = getBounds().y;
- // TODO maybe draw switch state too?
- gc.drawRectangle(posX, posY, width, height);
+ gc.drawRectangle(getBounds());
String label = bitDisplay == null ? BitVectorFormatter.formatAsString(null)
: BitVectorFormatter.formatAsString(bitDisplay.getDisplayedValue());
Font oldFont = gc.getFont();