g2.setColor( pumps.get(i).getColor() ); // color is accessible by pumps and handled by states
g2.fillOval( -pumpSize/2, -PANEL_SIZE/2, pumpSize, pumpSize );
// Outline the pump so it looks pretty.
g2.setStroke( stroke2 );
g2.setColor( Color.BLACK );
g2.drawOval( -pumpSize/2, -PANEL_SIZE/2, pumpSize, pumpSize );
// Show the pump ID number, mostly for debugging purposes.
g2.setColor( Color.WHITE );
g2.drawString( "" + i, -font.getSize()/4, -PANEL_SIZE/2 + pumpSize/2 + font.getSize()/3 );
// Rotate the graphics object to draw the next pump.