}
if (cl == null && _aa.sequenceRef != null)
{
- cl = _aa.sequenceRef.getContactListFor(_aa, column);
- if (cl == null && _aa.sequenceRef.getDatasetSequence() != null)
+ int spos = _aa.sequenceRef.findPosition(column) - 1;
+ if (spos >= _aa.sequenceRef.getStart()
+ && spos <= 1 + _aa.sequenceRef.getEnd())
{
- _aa.sequenceRef.getDatasetSequence().getContactListFor(_aa, column);
+ cl = _aa.sequenceRef.getContactListFor(_aa, spos);
+ if (cl == null && _aa.sequenceRef.getDatasetSequence() != null)
+ {
+ _aa.sequenceRef.getDatasetSequence().getContactListFor(_aa, spos);
+ }
}
}
return cl;
System.err.println("Marking " + fr + " to " + to);
for (int c = fr; c <= to; c++)
{
- av.getColumnSelection().addElement(c);
+ if (cma.sequenceRef != null)
+ {
+ int col = cma.sequenceRef.findIndex(c);
+ av.getColumnSelection().addElement(col);
+ }
+ else
+ {
+ av.getColumnSelection().addElement(c);
+ }
}
fr = Math.min(cXci.cStart, cXci.cEnd);
to = Math.max(cXci.cStart, cXci.cEnd);
System.err.println("Marking " + fr + " to " + to);
for (int c = fr; c <= to; c++)
{
- av.getColumnSelection().addElement(c);
+ if (cma.sequenceRef != null)
+ {
+ int col = cma.sequenceRef.findIndex(c);
+ av.getColumnSelection().addElement(col);
+ }
+ else
+ {
+ av.getColumnSelection().addElement(c);
+ }
}
fr = Math.min(lastX, currentX);
to = Math.max(lastX, currentX);