- TranslatedGC tgc = new TranslatedGC(gc, componentPositions.get(component));
- component.render(tgc);
- tgc.setBackground(getDisplay().getSystemColor(SWT.COLOR_BLUE));
+ component.render(gc, visibleRegion);
+ gc.setBackground(getDisplay().getSystemColor(SWT.COLOR_CYAN));
+ for (Pin p : component.getPins())
+ {
+ Point pos = p.getPos();
+ gc.fillOval(pos.x - 1, pos.y - 1, 2, 2);
+ }