refactored to remove App reference in Applet (JAL-638)
[jalview.git] / src / jalview / appletgui / AppletJmolBinding.java
index 4c29e05..d6be32d 100644 (file)
@@ -3,21 +3,26 @@
  */
 package jalview.appletgui;
 
+import java.awt.Container;
+import java.util.BitSet;
+
 import jalview.datamodel.PDBEntry;
 import jalview.datamodel.SequenceI;
 
+import org.jmol.api.JmolAppConsoleInterface;
+import org.jmol.api.JmolViewer;
 import org.jmol.popup.JmolPopup;
 
 class AppletJmolBinding extends jalview.ext.jmol.JalviewJmolBinding
 {
 
   /**
-   * 
+   * Window that contains the bound Jmol instance
    */
   private AppletJmol appletJmolBinding;
 
-  public AppletJmolBinding(AppletJmol appletJmol, PDBEntry[] pdbentry, SequenceI[] seq,
-          String[] chains, String protocol)
+  public AppletJmolBinding(AppletJmol appletJmol, PDBEntry[] pdbentry, SequenceI[][] seq,
+          String[][] chains, String protocol)
   {
     super(pdbentry, seq, chains, protocol);
     appletJmolBinding = appletJmol;
@@ -66,7 +71,7 @@ class AppletJmolBinding extends jalview.ext.jmol.JalviewJmolBinding
 
   }
 
-  public void updateUI()
+  public void refreshGUI()
   {
     appletJmolBinding.updateTitleAndMenus();
   }
@@ -99,4 +104,30 @@ class AppletJmolBinding extends jalview.ext.jmol.JalviewJmolBinding
     // do nothing.
   }
 
+  public void selectionChanged(BitSet arg0)
+  {
+    // TODO Auto-generated method stub
+    
+  }
+
+  public void refreshPdbEntries()
+  {
+    // TODO Auto-generated method stub
+    
+  }
+
+  @Override
+  public void showConsole(boolean show)
+  {
+    appletJmolBinding.showConsole(show);
+  }
+
+  @Override
+  protected JmolAppConsoleInterface createJmolConsole(JmolViewer viewer2,
+          Container consolePanel, String buttonsToShow)
+  {
+    // TODO Auto-generated method stub
+    return null;
+  }
+
 }
\ No newline at end of file