df3a687e56f3c856ec23b96055a0d4625a69c3c4
[jalview.git] / src / org / biojava / dasobert / eventmodel / SequenceListener.java
1 /*
2  *                  BioJava development code
3  *
4  * This code may be freely distributed and modified under the
5  * terms of the GNU Lesser General Public Licence.  This should
6  * be distributed with the code.  If you do not have a copy,
7  * see:
8  *
9  *      http://www.gnu.org/copyleft/lesser.html
10  *
11  * Copyright for this code is held jointly by the individual
12  * authors.  These should be listed in @author doc comments.
13  *
14  * For more information on the BioJava project and its aims,
15  * or to join the biojava-l mailing list, visit the home page
16  * at:
17  *
18  *      http://www.biojava.org/
19  *
20  * Created on Jun 10, 2005
21  *
22  */
23 package org.biojava.dasobert.eventmodel;
24
25 /**
26  * An interface fore events related to selections of sequence position, sequence
27  * range and locking of the selection.
28  * 
29  * @author Andreas Prlic
30  * 
31  */
32 public interface SequenceListener extends ObjectListener
33 {
34
35   /* select a certain sequence position */
36   public void selectedSeqPosition(int position);
37
38   /**
39    * select a certain range of a sequence
40    * 
41    * @param start
42    *                the start
43    * @param end
44    *                the end of the range
45    */
46   public void selectedSeqRange(int start, int end);
47
48   /**
49    * the current selecetion is locked and can not be changed
50    * 
51    * @param flag
52    *                true if selection should be locked
53    */
54   public void selectionLocked(boolean flag);
55
56   public void newSequence(SequenceEvent e);
57
58   /**
59    * clear what has been selected
60    * 
61    * 
62    */
63   public void clearSelection();
64 }