Merge branch 'Jalview-JS/jim/JAL-3253-JAL-3418' into Jalview-JS/JAL-3253-applet
[jalview.git] / srcjar / fr / orsay / lri / varna / interfaces / InterfaceVARNASelectionListener.java
1 package fr.orsay.lri.varna.interfaces;
2
3 import fr.orsay.lri.varna.models.BaseList;
4 import fr.orsay.lri.varna.models.rna.ModeleBase;
5
6 public interface InterfaceVARNASelectionListener {
7         /**
8          * Specifies an action that should be performed upon changing the hovered base.
9          * @param oldbase Previously hovered base (possibly null).
10          * @param newBase Newly hovered base (possibly null).
11          */
12         public void onHoverChanged(ModeleBase oldbase, ModeleBase newBase);
13         
14         /**
15          * Specifies the action to be performed upon changing the selection.
16          * @param selection The list of bases currently selected 
17          * @param addedBases The list of bases added since previous selection event
18          * @param removedBases The list of bases removed since previous selection event
19          */
20         public void onSelectionChanged(BaseList selection, BaseList addedBases, BaseList removedBases);
21 }