Fixed barchart color problem.

Added another function to TraitDisplay.PaintSupplier that takes in an
explicit index (should range from 0 to num_variations-1. The exact color
is calculated (based on resetIndex) and the correct color is returned.

This method avoid updating the paintIndex and thus avoid cycling through
the colors.