X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2FMCview%2FAppletPDBViewer.java;h=90a79b029b464c8c4abb6c18761917a132fe1224;hb=55cae9b50608f760cbf6ae2627e1d79d16746186;hp=b2e1187889b5c80b278a4ad149fdd86f322be3f8;hpb=21c29b20790ac555b2e2a124a034f6c6b4486270;p=jalview.git diff --git a/src/MCview/AppletPDBViewer.java b/src/MCview/AppletPDBViewer.java index b2e1187..90a79b0 100644 --- a/src/MCview/AppletPDBViewer.java +++ b/src/MCview/AppletPDBViewer.java @@ -1,30 +1,52 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8) - * Copyright (C) 2012 J Procter, AM Waterhouse, LM Lui, J Engelhardt, G Barton, M Clamp, S Searle + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors * * This file is part of Jalview. * * Jalview is free software: you can redistribute it and/or * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + * as published by the Free Software Foundation, either version 3 + * of the License, or (at your option) any later version. * * Jalview is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty * of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License along with Jalview. If not, see . + * You should have received a copy of the GNU General Public License + * along with Jalview. If not, see . + * The Jalview Authors are detailed in the 'AUTHORS' file. */ package MCview; -import java.awt.*; -import java.awt.event.*; - -import jalview.appletgui.*; -import jalview.datamodel.*; -import jalview.schemes.*; +import jalview.appletgui.AlignmentPanel; +import jalview.appletgui.CutAndPasteTransfer; +import jalview.appletgui.EmbmenuFrame; +import jalview.bin.JalviewLite; +import jalview.datamodel.PDBEntry; +import jalview.datamodel.SequenceI; +import jalview.schemes.BuriedColourScheme; +import jalview.schemes.HelixColourScheme; +import jalview.schemes.HydrophobicColourScheme; +import jalview.schemes.StrandColourScheme; +import jalview.schemes.TaylorColourScheme; +import jalview.schemes.TurnColourScheme; +import jalview.schemes.ZappoColourScheme; import jalview.util.MessageManager; +import java.awt.BorderLayout; +import java.awt.CheckboxGroup; +import java.awt.CheckboxMenuItem; +import java.awt.Frame; +import java.awt.Menu; +import java.awt.MenuBar; +import java.awt.MenuItem; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.ItemEvent; +import java.awt.event.ItemListener; + public class AppletPDBViewer extends EmbmenuFrame implements ActionListener, ItemListener { @@ -49,7 +71,7 @@ public class AppletPDBViewer extends EmbmenuFrame implements StringBuffer title = new StringBuffer(seq[0].getName() + ":" + pdbcanvas.pdbentry.getFile()); - jalview.bin.JalviewLite.addFrame(this, title.toString(), 400, 400); + JalviewLite.addFrame(this, title.toString(), 400, 400); } @@ -57,12 +79,12 @@ public class AppletPDBViewer extends EmbmenuFrame implements { if (evt.getSource() == mapping) { - jalview.appletgui.CutAndPasteTransfer cap = new jalview.appletgui.CutAndPasteTransfer( - false, null); + CutAndPasteTransfer cap = new CutAndPasteTransfer(false, null); Frame frame = new Frame(); frame.add(cap); - jalview.bin.JalviewLite.addFrame(frame, MessageManager.getString("label.pdb_sequence_mapping"), - 500, 600); + JalviewLite.addFrame(frame, + MessageManager.getString("label.pdb_sequence_mapping"), 500, + 600); cap.setText(pdbcanvas.mappingDetails.toString()); } @@ -167,7 +189,8 @@ public class AppletPDBViewer extends EmbmenuFrame implements chain.addActionListener(this); seqButton.setLabel(MessageManager.getString("action.by_sequence")); seqButton.addActionListener(this); - allchains.setLabel(MessageManager.getString("label.all_chains_visible")); + allchains + .setLabel(MessageManager.getString("label.all_chains_visible")); allchains.addItemListener(this); viewMenu.setLabel(MessageManager.getString("action.view")); zappo.setLabel(MessageManager.getString("label.zappo"));