g.drawRect(space.getX()*10, space.getY()*10, space.getWidth()*10, space.getHeight()*10);
if (showLinks) {
int links = space.getLinkCount();
for (int j=0;j<links;j++) {
Link link = space.getLink(j);
g.setColor(Color.red);
g.fillRect((link.getX()*10)-2, (link.getY()*10)-2,5,5);
}
}
}
}