g.setColor(TangoColors.ORANGE_2);
g.fillRect(6, (int) height - 6 - (TEXT_SIZE / 2), 3, 3);
g.drawString("Customer demand", 15, (int) height - 5);
// Show soft score
g.setColor(TangoColors.SCARLET_2);
HardAndSoftScore score = schedule.getScore();
if (score != null) {
String totalDistanceString;
if (!score.isFeasible()) {
totalDistanceString = "Not feasible";
} else {
totalDistanceString = numberFormat.format(- score.getSoftScore()) + " fuel";
}
g.setFont( g.getFont().deriveFont(Font.BOLD, (float) TEXT_SIZE * 2));
g.drawString(totalDistanceString,
(int) width - g.getFontMetrics().stringWidth(totalDistanceString) - 10, (int) height - 10);
}