*/
private int changeCount;
+ /*
+ * cached rgb colours for each position of the aligned sequence (column)
+ */
+ private int[] argb;
+
/**
* Creates a new Sequence object.
*
_isNa = Comparison.isNucleotide(this);
}
return !_isNa;
- };
+ }
/*
* (non-Javadoc)
List<SequenceFeature> result = getFeatures().findFeatures(startPos,
endPos, types);
- // if (datasetSequence != null)
- // {
- // result = datasetSequence.getFeatures().findFeatures(startPos, endPos,
- // types);
- // }
- // else
- // {
- // result = sequenceFeatureStore.findFeatures(startPos, endPos, types);
- // }
/*
* if end column is gapped, endPos may be to the right,
return 0;
}
- private int[] argb;
-
@Override
public int getColor(int i)
{
}
/**
- * @author Bob Hanson 2019.07.30
- *
- * allows passing the result ArrayList as a parameter to avoid
- * unnecessary construction
- * @return result (JavaScript) or new ArrayList (Java -- see FeatureRender)
- *
+ * 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,
result);
}
- /**
- * allows early intervention for renderer if this returns false
- */
@Override
public boolean hasFeatures(String type)
{