final int x = Settings.WIDTH / 2 - UITechnology.SIZE / 2;
final int avs = Settings.HEIGHT - TOPBAR_HEIGHT - DATA_ZONE_HEIGHT;
final int zoneHeight = avs / 2;
int y = TOPBAR_HEIGHT + zoneHeight - UITechnology.SIZE / 2;
this.uiTechnology = new UITechnology(t);
this.uiTechnology.setPosition(x, y);
this.uiTechnology.setSelected(true);
this.children.clear();
this.children.addAll(createUITechnologies(t.getChildren(), x + pitch));
this.parents.clear();
this.parents.addAll(createUITechnologies(t.getParents(), x - pitch));
if (this.parents.isEmpty()) {
// There is no parent so it is a root technology. We add a link to
// show all roots technologies
UITechnology root = new UITechnology("share");
root.setPosition(x - pitch, y);
this.parents.add(root);
}
}