3 import jalview.datamodel.PDBEntry;
4 import jalview.datamodel.SequenceI;
5 import jalview.datamodel.StructureViewerModel;
6 import jalview.gui.StructureViewer.ViewerType;
9 * A class for the gui frame through which Jalview interacts with the ChimeraX
10 * structure viewer. Mostly the same as ChimeraViewFrame with a few overrides
11 * for the differences.
16 public class ChimeraXViewFrame extends ChimeraViewFrame
19 public ChimeraXViewFrame(PDBEntry pdb, SequenceI[] seqsForPdb,
20 String[] chains, AlignmentPanel ap)
22 super(pdb, seqsForPdb, chains, ap);
25 public ChimeraXViewFrame(PDBEntry[] pdbsForFile, boolean superposeAdded,
26 SequenceI[][] theSeqs, AlignmentPanel ap)
28 super(pdbsForFile, superposeAdded, theSeqs, ap);
32 * Constructor given a session file to be loaded
39 public ChimeraXViewFrame(StructureViewerModel viewerData,
40 AlignmentPanel alignPanel, String sessionFile, String vid)
42 super(viewerData, alignPanel, sessionFile, vid);
46 public ViewerType getViewerType()
48 return ViewerType.CHIMERAX;
52 protected String getViewerName()
58 protected JalviewChimeraBindingModel newBindingModel(AlignmentPanel ap,
59 PDBEntry[] pdbentrys, SequenceI[][] seqs)
61 return new JalviewChimeraXBindingModel(this,
62 ap.getStructureSelectionManager(), pdbentrys, seqs, null);