2 * Jalview - A Sequence Alignment Editor and Viewer
\r
3 * Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
\r
5 * This program is free software; you can redistribute it and/or
\r
6 * modify it under the terms of the GNU General Public License
\r
7 * as published by the Free Software Foundation; either version 2
\r
8 * of the License, or (at your option) any later version.
\r
10 * This program is distributed in the hope that it will be useful,
\r
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
13 * GNU General Public License for more details.
\r
15 * You should have received a copy of the GNU General Public License
\r
16 * along with this program; if not, write to the Free Software
\r
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
\r
19 package jalview.datamodel;
\r
30 * @version $Revision$
\r
32 public interface SequenceI
\r
37 * @param name DOCUMENT ME!
\r
39 public void setName(String name);
\r
44 * @return DOCUMENT ME!
\r
46 public String getName();
\r
52 * @param start DOCUMENT ME!
\r
54 public void setStart(int start);
\r
59 * @return DOCUMENT ME!
\r
61 public int getStart();
\r
66 * @return DOCUMENT ME!
\r
68 public String getDisplayId(boolean jvsuffix);
\r
73 * @param end DOCUMENT ME!
\r
75 public void setEnd(int end);
\r
80 * @return DOCUMENT ME!
\r
82 public int getEnd();
\r
87 * @return DOCUMENT ME!
\r
89 public int getLength();
\r
94 * @param sequence DOCUMENT ME!
\r
96 public void setSequence(String sequence);
\r
101 * @return DOCUMENT ME!
\r
103 public String getSequence();
\r
108 * @param start DOCUMENT ME!
\r
109 * @param end DOCUMENT ME!
\r
111 * @return DOCUMENT ME!
\r
113 public String getSequence(int start, int end);
\r
118 * @param i DOCUMENT ME!
\r
120 * @return DOCUMENT ME!
\r
122 public char getCharAt(int i);
\r
127 * @param desc DOCUMENT ME!
\r
129 public void setDescription(String desc);
\r
134 * @return DOCUMENT ME!
\r
136 public String getDescription();
\r
141 * @param pos DOCUMENT ME!
\r
143 * @return DOCUMENT ME!
\r
145 public int findIndex(int pos);
\r
150 * @param i DOCUMENT ME!
\r
152 * @return DOCUMENT ME!
\r
154 public int findPosition(int i);
\r
159 * @return DOCUMENT ME!
\r
161 public int[] gapMap();
\r
166 * @param i DOCUMENT ME!
\r
167 * @param j DOCUMENT ME!
\r
169 public void deleteChars(int i, int j);
\r
174 * @param i DOCUMENT ME!
\r
176 public void deleteCharAt(int i);
\r
181 * @param i DOCUMENT ME!
\r
182 * @param c DOCUMENT ME!
\r
184 public void insertCharAt(int i, char c);
\r
190 * @param c DOCUMENT ME!
\r
192 public void setColor(Color c);
\r
197 * @return DOCUMENT ME!
\r
199 public Color getColor();
\r
204 * @return DOCUMENT ME!
\r
206 public SequenceFeature[] getSequenceFeatures();
\r
211 * @param v DOCUMENT ME!
\r
213 public void setSequenceFeatures(SequenceFeature [] features);
\r
218 * @param id DOCUMENT ME!
\r
220 public void setPDBId(Vector ids);
\r
225 * @return DOCUMENT ME!
\r
227 public Vector getPDBId();
\r
229 public void addPDBId(PDBEntry entry);
\r
231 public String getVamsasId();
\r
233 public void setVamsasId(String id);
\r
235 public void setDBRef(DBRefEntry[] dbs);
\r
237 public DBRefEntry [] getDBRef();
\r
239 public void addDBRef(DBRefEntry entry);
\r
241 public void addSequenceFeature(SequenceFeature sf);
\r
243 public void setDatasetSequence(SequenceI seq);
\r
245 public SequenceI getDatasetSequence();
\r
247 public AlignmentAnnotation [] getAnnotation();
\r
249 public void addAlignmentAnnotation(AlignmentAnnotation annotation);
\r
251 public SequenceGroup getHiddenSequences();
\r
253 public void addHiddenSequence(SequenceI seq);
\r
255 public void showHiddenSequence(SequenceI seq);
\r
257 public void changeCase(boolean toUpper, int start, int end);
\r
259 public void toggleCase(int start, int end);
\r