int x = ox + pitchX;
int y = oy;
// Columns labels
for (int col = 0; col < 3; col++) {
Label lbl = this.buildingColLabels[col];
lbl.setVisible(true);
lbl.setPosition(x, y);
x += pitchX;
}
y += 25;
x = startX;
BuildingData data = BuildingIO.getBuildingData(this.selectedBuilding
.getType());
BuildingLevelData levelData = data.getLevelData(this.selectedBuilding
.getLevel());
Map<Resource, BigDecimal> prod = levelData.getProduction();
Map<Resource, BigDecimal> cons = levelData.getConsumption();
Map<Resource, BigDecimal> store = levelData.getStoreCapacity();
Resource[] resources = Resource.values();
for (Resource r : resources) {
// TODO Row label
Label rowLabel = this.buildingRowLabels.get(r);
rowLabel.setVisible(true);
rowLabel.setPosition(x, y);
x += pitchX;
// Production
Label prodLabel = this.buildingProdLabels.get(r);
String prodValue = prod.get(r).toString();
drawResourceData(g, x, y, prodValue, prodLabel);
// Consumption
Label consLabel = this.buildingConsLabels.get(r);
String consValue = cons.get(r).toString();
drawResourceData(g, x += pitchX, y, consValue, consLabel);
// Store provided
Label storeLabel = this.buildingStoreLabels.get(r);
String storeValue = store.get(r).toString();
drawResourceData(g, x += pitchX, y, storeValue, storeLabel);
y += pitchY;
x = startX;