continue;
}
- if (av.getShowText())
- {
- g.setColor(Color.white);
- int charOffset = (charWidth - fm.charWidth(s)) / 2;
- g.drawString(String.valueOf(s),
- charOffset + (charWidth * (i - start)), pady);
- }
+ /*
+ * JAL-3045 text is always drawn over features, even if
+ * 'Show Text' is unchecked in the format menu
+ */
+ g.setColor(Color.white);
+ int charOffset = (charWidth - fm.charWidth(s)) / 2;
+ g.drawString(String.valueOf(s),
+ charOffset + (charWidth * (i - start)), pady);
}
return true;
}
List<SequenceFeature> overlaps = seq.getFeatures().findFeatures(
visiblePositions.getBegin(), visiblePositions.getEnd(), type);
- if (fc.isSimpleColour())
+ if (overlaps.size() > 1 && fc.isSimpleColour())
{
filterFeaturesForDisplay(overlaps);
}
continue;
}
+ /*
+ * find features of this type, and the colour of the _last_ one
+ * (the one that would be drawn on top) that has a colour
+ */
List<SequenceFeature> overlaps = seq.findFeatures(column, column,
type);
- for (SequenceFeature sequenceFeature : overlaps)
+ for (int i = overlaps.size() - 1 ; i >= 0 ; i--)
{
+ SequenceFeature sequenceFeature = overlaps.get(i);
if (!featureGroupNotShown(sequenceFeature))
{
Color col = getColour(sequenceFeature);