/** DOCUMENT ME!! */\r
public SequenceFeature [] sequenceFeatures;\r
\r
+ /** This array holds hidden sequences\r
+ * of which this sequence is the representitive member of a group\r
+ */\r
+ SequenceGroup hiddenSequences;\r
+\r
/**\r
* Creates a new Sequence object.\r
*\r
}\r
}\r
\r
- /**\r
- * DOCUMENT ME!\r
- *\r
- * @param i DOCUMENT ME!\r
- * @param c DOCUMENT ME!\r
- */\r
- public void insertCharAt(int i, char c)\r
- {\r
- insertCharAt(i, c, true);\r
- }\r
\r
/**\r
* DOCUMENT ME!\r
* @param c DOCUMENT ME!\r
* @param chop DOCUMENT ME!\r
*/\r
- public void insertCharAt(int i, char c, boolean chop)\r
+ public void insertCharAt(int i, char c)\r
{\r
String tmp = new String(sequence);\r
\r
this.annotation.addElement( annotation );\r
}\r
\r
+ public SequenceGroup getHiddenSequences()\r
+ {\r
+ return hiddenSequences;\r
+ }\r
+\r
+ public void addHiddenSequence(SequenceI seq)\r
+ {\r
+ if(hiddenSequences==null)\r
+ {\r
+ hiddenSequences = new SequenceGroup();\r
+ }\r
+ hiddenSequences.addSequence(seq, false);\r
+ }\r
+\r
+ public void showHiddenSequence(SequenceI seq)\r
+ {\r
+ hiddenSequences.deleteSequence(seq, false);\r
+ if (hiddenSequences.getSize() < 1)\r
+ {\r
+ hiddenSequences = null;\r
+ }\r
+\r
+ }\r
}\r
*/\r
public void insertCharAt(int i, char c);\r
\r
- /**\r
- * DOCUMENT ME!\r
- *\r
- * @param i DOCUMENT ME!\r
- * @param c DOCUMENT ME!\r
- * @param chop DOCUMENT ME!\r
- */\r
- public void insertCharAt(int i, char c, boolean chop);\r
\r
/**\r
* DOCUMENT ME!\r
\r
public void addAlignmentAnnotation(AlignmentAnnotation annotation);\r
\r
+ public SequenceGroup getHiddenSequences();\r
+\r
+ public void addHiddenSequence(SequenceI seq);\r
+\r
+ public void showHiddenSequence(SequenceI seq);\r
+\r
}\r