Vector sequences = new Vector();\r
for (int j = 0; j < l.size(); j++)\r
{\r
- sequences.addElement( (Sequence) ( (SequenceNode) l.elementAt(j)).element());\r
+ SequenceI s1 = (SequenceI) ( (SequenceNode) l.elementAt(j)).element();\r
+ if(!sequences.contains(s1))\r
+ sequences.addElement(s1);\r
}\r
\r
ColourSchemeI cs = ColourSchemeProperty.getColour(sequences, av.alignment.getWidth(),\r
new Vector());\r
\r
Vector sequences = new Vector();\r
- for (int j = 0; j < l.size(); j++)\r
- {\r
- sequences.add( (Sequence)((SequenceNode) l.elementAt(j)).element());\r
+ for (int j = 0; j < l.size(); j++)\r
+ {\r
+ SequenceI s1 = (SequenceI) ( (SequenceNode) l.elementAt(j)).element();\r
+ if (!sequences.contains(s1))\r
+ sequences.addElement(s1);\r
+\r
}\r
\r
ColourSchemeI cs = ColourSchemeProperty.getColour(sequences, av.alignment.getWidth(),\r