continue;
}
+ /*
+ * 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),
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);