*/
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;
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;
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);