public void onDraw(Canvas canvas) {
Rect2i region = canvas.getRegion();
inputPort.updateRect();
canvas.drawWidget(inputPort, Rect2i.createFromMinAndMax(
(int) (inputPort.rect.minX() / 10.f * region.width()),
(int) (inputPort.rect.minY() / 5.f * region.height()),
(int) (inputPort.rect.maxX() / 10.f * region.width()),
(int) (inputPort.rect.maxY() / 5.f * region.height())));
for (Port port : ports) {
port.updateRect();
canvas.drawWidget(port, Rect2i.createFromMinAndMax(