this(new String[]
{ file }, new String[]
{ id }, new SequenceI[][]
- { seq }, ap, true, true, loadStatus, bounds, viewid);
+ { seq }, ap, true, true, false, loadStatus, bounds, viewid);
}
ViewSelectionMenu seqColourBy;
* @param useToAlign
* - add the alignment panel to the list used for aligning these
* structures
+ * @param leaveColouringToJmol
+ * - do not update the colours from any other source. Jmol is handling them
* @param loadStatus
* @param bounds
* @param viewid
*/
public AppJmol(String[] files, String[] ids, SequenceI[][] seqs,
- AlignmentPanel ap, boolean usetoColour, boolean useToAlign,
+ AlignmentPanel ap, boolean usetoColour, boolean useToAlign, boolean leaveColouringToJmol,
String loadStatus, Rectangle bounds, String viewid)
{
PDBEntry[] pdbentrys = new PDBEntry[files.length];
{
useAlignmentPanelForSuperposition(ap);
}
+ if (leaveColouringToJmol || !usetoColour)
+ {
+ jmb.setColourBySequence(false);
+ seqColour.setSelected(false);
+ jmolColour.setSelected(true);
+ }
if (usetoColour)
{
useAlignmentPanelForColourbyseq(ap);
jmb.setColourBySequence(true);
seqColour.setSelected(true);
- } else {
- jmb.setColourBySequence(false);
- seqColour.setSelected(false);
- jmolColour.setSelected(true);
+ jmolColour.setSelected(false);
}
this.setBounds(bounds);
initMenus();
}
}
+ public void useAlignmentPanelForColourbyseq(AlignmentPanel nap, boolean enableColourBySeq)
+ {
+ useAlignmentPanelForColourbyseq(nap);
+ jmb.setColourBySequence(enableColourBySeq);
+ seqColour.setSelected(enableColourBySeq);
+ jmolColour.setSelected(!enableColourBySeq);
+ }
public void useAlignmentPanelForColourbyseq(AlignmentPanel nap)
{
addAlignmentPanel(nap);
return (_colourwith != null) && _colourwith.contains(ap2);
}
+ /**
+ *
+ * @return TRUE if the view is NOT being coloured by sequence associations.
+ */
+ public boolean isColouredByJmol()
+ {
+ return !jmb.isColourBySequence();
+ }
+
+
}