SequenceFeature sf;\r
FeatureRenderer fr = alignPanel.seqPanel.seqCanvas.getFeatureRenderer();\r
int lineNo = 0;\r
+ String featureGroup = null;\r
while ( (line = in.readLine()) != null)\r
{\r
lineNo++;\r
if (st.countTokens() == 2)\r
{\r
type = st.nextToken();\r
- UserColourScheme ucs = new UserColourScheme(st.nextToken());\r
- fr.setColour(type, ucs.findColour("A"));\r
+ if(type.equalsIgnoreCase("startgroup"))\r
+ {\r
+ featureGroup = st.nextToken();\r
+ }\r
+ else if(type.equalsIgnoreCase("endgroup"))\r
+ {\r
+ //We should check whether this is the current group,\r
+ //but at present theres no way of showing more than 1 group\r
+ st.nextToken();\r
+ featureGroup = null;\r
+ }\r
+ else\r
+ {\r
+ UserColourScheme ucs = new UserColourScheme(st.nextToken());\r
+ fr.setColour(type, ucs.findColour("A"));\r
+ }\r
continue;\r
}\r
\r
}\r
\r
sf = new SequenceFeature(type, desc, "", start, end);\r
+ sf.setFeatureGroup(featureGroup);\r
\r
seq.addSequenceFeature(sf);\r
}\r