3 import jalview.api.AlignmentViewPanel;
4 import jalview.datamodel.PDBEntry;
5 import jalview.datamodel.SequenceI;
6 import jalview.ext.rbvi.chimera.JalviewChimeraBinding;
7 import jalview.structure.StructureSelectionManager;
9 public class JalviewChimeraBindingModel extends JalviewChimeraBinding
11 private ChimeraViewFrame cvf;
13 public JalviewChimeraBindingModel(ChimeraViewFrame chimeraViewFrame,
14 StructureSelectionManager ssm, PDBEntry[] pdbentry,
15 SequenceI[][] sequenceIs, String[][] chains, String protocol)
17 super(ssm, pdbentry, sequenceIs, chains, protocol);
18 cvf = chimeraViewFrame;
21 FeatureRenderer fr = null;
24 public jalview.api.FeatureRenderer getFeatureRenderer(
25 AlignmentViewPanel alignment)
27 AlignmentPanel ap = (alignment == null) ? cvf.ap
28 : (AlignmentPanel) alignment;
29 if (ap.av.showSequenceFeatures)
33 fr = ap.cloneFeatureRenderer();
37 ap.updateFeatureRenderer(fr);
45 public jalview.api.SequenceRenderer getSequenceRenderer(
46 AlignmentViewPanel alignment)
48 return new SequenceRenderer(((AlignmentPanel) alignment).av);
51 public void refreshGUI()
53 // appJmolWindow.repaint();
54 javax.swing.SwingUtilities.invokeLater(new Runnable()
58 cvf.updateTitleAndMenus();
64 public void updateColours(Object source)
66 AlignmentPanel ap = (AlignmentPanel) source, topap;
67 // ignore events from panels not used to colour this view
68 if (!cvf.isUsedforcolourby(ap))
70 if (!isLoadingFromArchive())
72 colourBySequence(ap.av.getShowSequenceFeatures(), ap);
76 public void releaseReferences(Object svl)
78 // TODO Auto-generated method stub
83 protected void releaseUIResources()
85 // TODO Auto-generated method stub
90 public void refreshPdbEntries()
92 // TODO Auto-generated method stub
97 public void showUrl(String url, String target)
99 // TODO Auto-generated method stub