Graphics2D g2 = (Graphics2D) g;
g2.setBackground(Color.white);
g2.clearRect(0, 0, getWidth(), getHeight());
for (int i = 0; i < locations.size(); i++) {
String location = locations.get(i);
Agent agent = getAgent(location);
if (isDirty(location)) {
g2.setColor(Color.LIGHT_GRAY);
g2.fillRect(x(11 * i), y(0), scale(10), scale(10));
}
g2.setColor(Color.black);