- // also need a 'getMaxPosForRange(start,end)'
- g.setColor(getColorForRange(min, max, contacts, cstart, cend));
+ // also need a 'getMaxPosForRange(start,end)' to accurately render
+ Color col;
+ boolean rowsel = false;
+ if (columnSelection != null)
+ {
+ if (_aa.sequenceRef == null)
+ {
+ rowsel = columnSelection.intersects(ci.cStart, ci.cEnd);
+ }
+ else
+ {
+ // TODO check we have correctly mapped cstart to local sequence
+ // numbering
+ int s = _aa.sequenceRef.findIndex(ci.cStart);
+ int e = _aa.sequenceRef.findIndex(ci.cEnd);
+ if (s > 0 && s < _aa.sequenceRef.getLength())
+ {
+ rowsel = columnSelection.intersects(s, e);
+ }
+ }
+ }
+ // TODO: show selected region
+ if (colsel || rowsel)
+ {