2 * BioJava development code
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,
9 * http://www.gnu.org/copyleft/lesser.html
11 * Copyright for this code is held jointly by the individual
12 * authors. These should be listed in @author doc comments.
14 * For more information on the BioJava project and its aims,
15 * or to join the biojava-l mailing list, visit the home page
18 * http://www.biojava.org/
20 * Created on Jun 10, 2005
23 package org.biojava.dasobert.eventmodel;
25 /** An interface fore events related to selections of sequence
26 * position, sequence range and locking of the selection.
28 * @author Andreas Prlic
31 public interface SequenceListener
32 extends ObjectListener{
34 /* select a certain sequence position */
35 public void selectedSeqPosition(int position);
37 /** select a certain range of a sequence */
38 public void selectedSeqRange(int start, int end);
40 /** the current selecetion is locked and can not be changed */
41 public void selectionLocked(boolean flag);
43 public void newSequence(SequenceEvent e);
45 /** clear what has been selected
49 public void clearSelection();