+
+ @Override
+ public int getColor(int i)
+ {
+ return argb == null ? 0 : argb[i];
+ }
+
+ @Override
+ public int setColor(int i, int rgb)
+ {
+ if (argb == null)
+ {
+ argb = new int[this.sequence.length];
+ }
+ return (argb[i] = rgb);
+ }
+
+ @Override
+ public void resetColors()
+ {
+ argb = null;
+ }
+
+ /**
+ * Answers a (possibly empty) list of features of the specified type that
+ * overlap the specified column position. If parameter {@code result} is not
+ * null, features are appended to it and the (possibly extended) list is
+ * returned.
+ */
+ @Override
+ public List<SequenceFeature> findFeatures(int column, String type,
+ List<SequenceFeature> result)
+ {
+ return getFeatures().findFeatures(findPosition(column - 1), type,
+ result);
+ }
+
+ @Override
+ public boolean hasFeatures(String type)
+ {
+ return getFeatures().hasFeatures(type);
+ }
+