+ for (int ht = y2,
+ eht = y2 - _aa.graphHeight; ht >= eht; ht -= pixels_step)
+ {
+ cstart = (int) Math.floor(((double) y2 - ht) * contacts_per_pixel);
+ cend = (int) Math.min(contact_height,
+ Math.ceil(cstart + contacts_per_pixel * pixels_step));
+
+ // TODO show maximum colour for range - sort of done
+ // also need a 'getMaxPosForRange(start,end)' to accurately render
+ Color col = getColorForRange(min, max, contacts, cstart, cend);
+
+ // TODO: show selected region
+ // if (colsel || columnSelection!=null &&
+ // columnSelection.intersects(cstart,cend))
+ // {
+ // g.setColor(col.brighter());
+ // }
+ // else