X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FAppVarnaBinding.java;h=25af7d113c764239dfe541227e072720b96f52f3;hb=528dcd143968fc270232e4cec64a79b447aa5ec6;hp=956c2e12726ac245adde2d7758aa7c7b8ad9590e;hpb=c54581c9ab50f031fe6400fa4f578a44f1f55798;p=jalview.git diff --git a/src/jalview/gui/AppVarnaBinding.java b/src/jalview/gui/AppVarnaBinding.java index 956c2e1..25af7d1 100644 --- a/src/jalview/gui/AppVarnaBinding.java +++ b/src/jalview/gui/AppVarnaBinding.java @@ -20,6 +20,11 @@ */ package jalview.gui; +import jalview.datamodel.SequenceI; +import jalview.ext.varna.JalviewVarnaBinding; +import jalview.structure.AtomSpec; +import jalview.util.MessageManager; + import java.awt.BorderLayout; import java.awt.Color; import java.awt.Component; @@ -59,38 +64,10 @@ import fr.orsay.lri.varna.models.FullBackup; import fr.orsay.lri.varna.models.VARNAConfig; import fr.orsay.lri.varna.models.rna.RNA; -import jalview.datamodel.SequenceI; -import jalview.ext.varna.JalviewVarnaBinding; -import jalview.structure.AtomSpec; -import jalview.util.MessageManager; - public class AppVarnaBinding extends JalviewVarnaBinding { public VARNAPanel vp; - // remove unused (commented out) fields? - // protected JPanel _tools = new JPanel(); - // - // private JPanel _input = new JPanel(); - // - // private JPanel _strPanel = new JPanel(); - // - // private JTextField _str = new JTextField(); - // - // private JTextField _seq = new JTextField(); - // - // private JLabel _strLabel = new JLabel( - // MessageManager.getString("label.str")); - // - // private JButton _updateButton = new JButton( - // MessageManager.getString("action.update")); - // - // private JButton _deleteButton = new JButton( - // MessageManager.getString("action.delete")); - // - // private JButton _duplicateButton = new JButton( - // MessageManager.getString("action.snapshot")); - // protected JPanel _listPanel = new JPanel(); private ReorderableJList _sideList = null; @@ -165,48 +142,6 @@ public class AppVarnaBinding extends JalviewVarnaBinding vp.setBackground(_backgroundColor); - // MC commented out stuff not added to panel - remove? - // Font textFieldsFont = Font.decode("MonoSpaced-PLAIN-12"); - // - // _seq.setFont(textFieldsFont); - // if (!rnaList.isEmpty()) - // { - // _seq.setText(rnaList.get(0).getSeq()); - // } - - // _updateButton.addActionListener(new ActionListener() - // { - // public void actionPerformed(ActionEvent e) - // { - // FullBackup sel = (FullBackup) _sideList.getSelectedValue(); - // sel.rna.setSequence("A"); - // } - // }); - // - // _strLabel.setPreferredSize(new Dimension(marginTools, 15)); - // _strLabel.setHorizontalTextPosition(JLabel.LEFT); - // _str.setFont(textFieldsFont); - // _strPanel.setLayout(new BorderLayout()); - // _strPanel.add(_strLabel, BorderLayout.WEST); - // _strPanel.add(_str, BorderLayout.CENTER); - // - // _input.setLayout(new GridLayout(1, 0)); - // _input.add(_strPanel); - // - // JPanel goPanel = new JPanel(); - // goPanel.setLayout(new BorderLayout()); - // - // _tools.setLayout(new BorderLayout()); - // _tools.add(_input, BorderLayout.CENTER); - // _tools.add(goPanel, BorderLayout.EAST); - // - // goPanel.add(_updateButton, BorderLayout.CENTER); - // - // JPanel ops = new JPanel(); - // ops.setLayout(new GridLayout(1, 2)); - // ops.add(_deleteButton); - // ops.add(_duplicateButton); - JLabel j = new JLabel( MessageManager.getString("label.structures_manager"), JLabel.CENTER);