* datasource protocol for access to PDBEntry
*/
String protocol = null;
-
+ /**
+ * Load a bunch of pdb entries associated with sequences in the alignment and display them - aligning them if necessary.
+ * @param pdbentries each pdb file (at least one needed)
+ * @param boundseqs each set of sequences for each pdb file (must match number of pdb files)
+ * @param boundchains the target pdb chain corresponding with each sequence associated with each pdb file (may be null at any level)
+ * @param align true/false
+ * @param ap associated alignment
+ * @param protocol how to get pdb data
+ */
+ public AppletJmol(PDBEntry[] pdbentries, SequenceI[][] boundseqs, String[][] boundchains, boolean align, AlignmentPanel ap, String protocol)
+ {
+ throw new Error("Not yet implemented.");
+ }
public AppletJmol(PDBEntry pdbentry, SequenceI[] seq, String[] chains,
AlignmentPanel ap, String protocol)
{
closeViewer();
}
});
-
+ if (pdbentry.getProperty()==null)
+ {
+ pdbentry.setProperty(new Hashtable());
+ pdbentry.getProperty().put("protocol", protocol);
+ }
if (pdbentry.getFile() != null)
{
// import structure data from pdbentry.getFile based on given protocol
if (protocol.equals(AppletFormatAdapter.PASTE))
{
+ // TODO: JAL-623 : correctly record file contents for matching up later
+ // pdbentry.getProperty().put("pdbfilehash",""+pdbentry.getFile().hashCode());
loadInline(pdbentry.getFile());
}
else if (protocol.equals(AppletFormatAdapter.FILE)
public void loadInline(String string)
{
loadedInline = true;
- jmb.viewer.openStringInline(string);
+ jmb.loadInline(string);
}
void setChainMenuItems(Vector chains)