JAL-3032 adds Java 8 functionality (2/2)
[jalview.git] / src2 / fr / orsay / lri / varna / interfaces / InterfaceVARNARNAListener.java
1 package fr.orsay.lri.varna.interfaces;
2
3 import java.awt.geom.Point2D;
4 import java.util.ArrayList;
5 import java.util.Hashtable;
6 import java.util.Set;
7
8 import fr.orsay.lri.varna.models.rna.ModeleBP;
9
10 public interface InterfaceVARNARNAListener {
11         /**
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
16          */
17         public void onSequenceModified(int index, String oldseq, String newseq);
18         
19         /**
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
24          */
25         public void onStructureModified(Set<ModeleBP> current, Set<ModeleBP> addedBasePairs, Set<ModeleBP> removedBasePairs);
26         
27         /**
28          * Reacts to displacement of 
29          * @param previousPositions
30          */
31         public void onRNALayoutChanged(Hashtable<Integer,Point2D.Double> previousPositions);
32 }