// double sx = bounds.getWidth()/sizes[idx].getWidth();
// double sy = bounds.getHeight()/sizes[idx].getHeight();
// System.err.println("Scale: [" + sx + ", " + sy + "]");
gn.paint(g2d);
}
// This function can be tweaked to any extent. This is a very
// simple measure of 'goodness'. It has two main flaws as is,
// mostly in regards to distance calc with 'unbounded' ranges.