String clickString = "Click anywhere in the map to add a customer.";
g.drawString(clickString, (int) width - 5 - g.getFontMetrics().stringWidth(clickString), (int) height - 5);
}
// Show soft score
g.setColor(TangoColorFactory.ORANGE_3);
HardSoftScore score = solution.getScore();
if (score != null) {
String distanceString;
if (!score.isFeasible()) {
distanceString = "Not feasible";
} else {
double distance = ((double) - score.getSoftScore()) / 1000.0;
distanceString = NUMBER_FORMAT.format(distance) + " " + solution.getDistanceUnitOfMeasurement();
}
g.setFont(g.getFont().deriveFont(Font.BOLD, (float) TEXT_SIZE * 2));
g.drawString(distanceString,
(int) width - g.getFontMetrics().stringWidth(distanceString) - 10, (int) height - 10 - TEXT_SIZE);