logicObs = (i) -> requestRedraw();
setSize(width, height);
- addPin(this.outputPin = new Pin(this, 1, width, height / 2));
+ addPin(this.outputPin = new Pin(this, "", 1, width, height / 2));
}
@Override
double posY = getBounds().y;
// TODO maybe draw switch state too?
- gc.drawRectangle(posX, posY, width, height);
+ gc.drawRectangle(getBounds());
String label = BitVectorFormatter.formatValueAsString(end);
Font oldFont = gc.getFont();
Font labelFont = new Font(oldFont.getName(), fontHeight, oldFont.getStyle());