NeoSeq

Now let's make our simple map program into a sequence map program. We add a stanza at the end of our configuration file that gives the residues in the sequence.

To show these residues we introduce a NeoSeq to the program. We put it in its own window (Frame) and call its setResidues() method.

Scroll the configuration file down and find the "sequence" keyword followed by the residues of the sequence.



Look at the source.

Exercises

  1. When the sequence is read, adjust the map's range so that it is at least as long as the sequence.
  2. Make the NeoSeq's starting number match the NeoMap's range start.

Next: Coordinating Two Widgets