/*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.6)
- * Copyright (C) 2010 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)
+ * Copyright (C) 2011 J Procter, AM Waterhouse, J Engelhardt, LM Lui, G Barton, M Clamp, S Searle
*
* This file is part of Jalview.
*
}
}
});
-
_rnaList = new BackupHolder(dlm,_sideList);
try {
public void actionPerformed(ActionEvent e) {
FullBackup sel = (FullBackup) _sideList.getSelectedValue();
sel.rna.setSequence("A");
- /*try {
- RNA nRNA = new RNA(generateDefaultName());
- nRNA.setRNA(_seq.getText(), _str.getText());
- nRNA.drawRNARadiate(vp.getConfig());
- _rnaList.add(new VARNAConfig(),nRNA,true);
- } catch (ExceptionUnmatchedClosingParentheses e1) {
- JOptionPane.showMessageDialog(vp, e1.getMessage(),"Error", JOptionPane.ERROR_MESSAGE);
- } catch (ExceptionFileFormatOrSyntax e1) {
- JOptionPane.showMessageDialog(vp, e1.getMessage(),"Error", JOptionPane.ERROR_MESSAGE);
- }*/
- }
+ }
});
//_seqPanel.setLayout(new BorderLayout());
public JPanel getListPanel(){
return _listPanel;
}
+
+ /**
+ * TODO: Is it effective to transfer the whole RNA?
+ * @return Currently selected RNA
+ */
+ public RNA getSelectedRNA(){
+ return _rnaList.getElementAt(_sideList.getSelectedIndex()).rna;
+ }
+
+ /**
+ * Substitute currently selected RNA with the edited one
+ * @param rnaEdit
+ */
+ public void updateSelectedRNA(RNA rnaEdit){
+ vp.repaint();
+ vp.showRNA(rnaEdit);
+ }
/*
private void RNAPanelDemoInit()
// TODO Auto-generated method stub
}
+
+ @Override
+ public void onStructureRedrawn()
+ {
+ // TODO Auto-generated method stub
+
+ }
}