1 package jalview.datamodel;
4 * An immutable object representing one or more residue and corresponding
5 * alignment column positions for a sequence
7 public class SequenceCursor
10 * the aligned sequence this cursor applies to
12 public final SequenceI sequence;
15 * residue position in sequence (start...), 0 if undefined
17 public final int residuePosition;
20 * column position (1...) corresponding to residuePosition, or 0 if undefined
22 public final int columnPosition;
25 * a token which may be used to check whether this cursor is still valid for
26 * its sequence (allowing it to be ignored if the sequence has changed)
28 public final int token;
30 public SequenceCursor(SequenceI seq, int resPos, int column, int tok)
33 residuePosition = resPos;
34 columnPosition = column;