1 package fr.orsay.lri.varna.interfaces;
3 import java.awt.geom.Point2D;
4 import java.util.ArrayList;
5 import java.util.Hashtable;
8 import fr.orsay.lri.varna.models.rna.ModeleBP;
10 public interface InterfaceVARNARNAListener {
12 * Reacts to changes being made at the sequence level.
13 * @param index The sequence index where a change of base content is observed
14 * @param oldseq Previous base content
15 * @param newseq New base content
17 public void onSequenceModified(int index, String oldseq, String newseq);
20 * Reacts to modification of the structure (Base-pair addition/removal).
21 * @param current Current list of base-pairs (can be also accessed within the current RNA object).
22 * @param addedBasePairs Newly created base-pairs
23 * @param removedBasePairs Newly removed base-pairs
25 public void onStructureModified(Set<ModeleBP> current, Set<ModeleBP> addedBasePairs, Set<ModeleBP> removedBasePairs);
28 * Reacts to displacement of
29 * @param previousPositions
31 public void onRNALayoutChanged(Hashtable<Integer,Point2D.Double> previousPositions);