+ * Note this method does not check for a gap in the column so would return the
+ * colour for features enclosing a gapped column. Check for gap before calling
+ * if different behaviour is wanted.
+ *
+ * BH 2019.07.30
+ *
+ * Adds a result ArrayList to parameters in order to avoid an unnecessary
+ * construction of that for every pixel checked.
+ *
+ *
+ * @param seq
+ * @param column
+ * (1..)
+ * @return
+ */
+ private Color findFeatureColour(SequenceI seq, int column)
+ {
+ /*
+ * check for new feature added while processing
+ */
+ updateFeatures();
+
+ /*
+ * inspect features in reverse renderOrder (the last in the array is
+ * displayed on top) until we find one that is rendered at the position
+ */
+ for (int renderIndex = renderOrder.length; --renderIndex >= 0;)
+ {
+ String type = renderOrder[renderIndex];
+ if (!seq.hasFeatures(type) || !showFeatureOfType(type))
+ {
+ continue;
+ }
+
+ if (overlaps != null)
+ {
+ overlaps.clear();
+ }
+ List