* @param ap
*/
public AppJmol(PDBEntry pdbentry, SequenceI[] seq, String[] chains,
- AlignmentPanel ap)
+ final AlignmentPanel ap)
{
progressBar = ap.alignFrame;
// ////////////////////////////////
{
if (frames[i] instanceof AppJmol)
{
- AppJmol topJmol = ((AppJmol) frames[i]);
+ final AppJmol topJmol = ((AppJmol) frames[i]);
// JBPNOTE: this looks like a binding routine, rather than a gui
// routine
for (int pe = 0; pe < topJmol.jmb.pdbentry.length; pe++)
{
topJmol.jmb.addSequence(pe, seq);
topJmol.addAlignmentPanel(ap);
+ // add it to the set used for colouring
+ topJmol.useAlignmentPanelForColourbyseq(ap);
topJmol.buildJmolActionMenu();
+ ap.getStructureSelectionManager().sequenceColoursChanged(ap);
break;
}
}