*/
private int changeCount;
- /*
- * cached rgb colours for each position of the aligned sequence (column)
- */
- private int[] argb;
-
/**
* Creates a new Sequence object.
*
@Override
public void sequenceChanged()
{
- argb = null;
changeCount++;
}
return 0;
}
- @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