private void drawComponent(GeneralGC gc, GUIComponent component, Rectangle visibleRegion)\r
{\r
component.render(gc, visibleRegion);\r
- gc.setBackground(getDisplay().getSystemColor(SWT.COLOR_CYAN));\r
+ gc.setBackground(getDisplay().getSystemColor(SWT.COLOR_DARK_CYAN));\r
for (Pin p : component.getPins())\r
{\r
Point pos = p.getPos();\r
@Override
public void render(GeneralGC gc, Rectangle visibleRegion)
{
- ColorHelper.executeWithDifferentBackground(gc, BitVectorFormatter.formatAsColor(end), () -> gc.fillOval(-1, -1, 2, 2));
+ Rectangle bounds = getBounds();
+ ColorHelper.executeWithDifferentBackground(gc, BitVectorFormatter.formatAsColor(end),
+ () -> gc.fillOval(bounds.x - 1, bounds.y - 1, 2, 2));
}
public void setLogicModelBinding(ReadEnd end)