{
return viewStructures(getViewerType(), ap, pr, collateForPDB);
}
- public JalviewStructureDisplayI viewStructures(Viewer viewerType,AlignmentPanel ap,
- PDBEntry[] pr, SequenceI[][] collateForPDB)
+
+ public JalviewStructureDisplayI viewStructures(Viewer viewerType,
+ AlignmentPanel ap, PDBEntry[] pr, SequenceI[][] collateForPDB)
{
JalviewStructureDisplayI sview = null;
- if (viewerType.equals(Viewer.JMOL)){
+ if (viewerType.equals(Viewer.JMOL))
+ {
sview = new AppJmol(ap, pr, ap.av.collateForPDB(pr));
- } else
- if (viewerType.equals(Viewer.CHIMERA)) {
+ }
+ else if (viewerType.equals(Viewer.CHIMERA))
+ {
sview = new ChimeraViewFrame(ap, pr, ap.av.collateForPDB(pr));
- }else
+ }
+ else
+ {
+ Cache.log.error("Unknown structure viewer type "
+ + getViewerType().toString());
+ }
+ return sview;
+ }
+
+ public JalviewStructureDisplayI viewStructures(Viewer viewerType,
+ AlignmentPanel ap, PDBEntry pr, SequenceI[] collateForPDB)
+ {
+ JalviewStructureDisplayI sview = null;
+ if (viewerType.equals(Viewer.JMOL))
+ {
+ sview = new AppJmol(pr, collateForPDB, null, ap);
+ }
+ else if (viewerType.equals(Viewer.CHIMERA))
+ {
+ sview = new ChimeraViewFrame(pr, collateForPDB, null, ap);
+ }
+ else
{
Cache.log.error("Unknown structure viewer type "
+ getViewerType().toString());
public JalviewStructureDisplayI viewStructures(PDBEntry pdb,
SequenceI[] sequenceIs, Object object, AlignmentPanel ap)
{
- return viewStructures(ap, new PDBEntry[]
- { pdb }, new SequenceI[][]
- { sequenceIs });
+ return viewStructures(getViewerType(), ap, pdb, sequenceIs);
}
public JalviewStructureDisplayI createView(Viewer jmol, String[] pdbf,