+
+ public void showConsole(boolean b)
+ {
+ appJmolWindow.showConsole(b);
+ }
+
+ /**
+ * add the given sequences to the mapping scope for the given pdb file handle
+ *
+ * @param pdbFile
+ * - pdbFile identifier
+ * @param seq
+ * - set of sequences it can be mapped to
+ */
+ public void addSequenceForStructFile(String pdbFile, SequenceI[] seq)
+ {
+ for (int pe = 0; pe < pdbentry.length; pe++)
+ {
+ if (pdbentry[pe].getFile().equals(pdbFile))
+ {
+ addSequence(pe, seq);
+ }
+ }
+ }
+
+ @Override
+ protected JmolAppConsoleInterface createJmolConsole(JmolViewer viewer2,
+ Container consolePanel, String buttonsToShow)
+ {
+ return new AppConsole(viewer, consolePanel, buttonsToShow);
+ }
+
+ @Override
+ protected void releaseUIResources()
+ {
+ appJmolWindow = null;
+ if (console != null)
+ {
+ try
+ {
+ console.setVisible(false);
+ } catch (Error e)
+ {
+ } catch (Exception x)
+ {
+ }
+ ;
+ console = null;
+ }
+
+ }
+
+ @Override
+ public void releaseReferences(Object svl)
+ {
+ if (svl instanceof SeqPanel)
+ {
+ appJmolWindow.removeAlignmentPanel(((SeqPanel) svl).ap);
+
+ }
+ ;
+ }
+}