}\r
}\r
\r
- String param = applet.getParameter("features");\r
+ // ///////////////////////////\r
+ // modify display of features\r
+ // we do this before any features have been loaded, ensuring any hidden groups are hidden when features first displayed\r
+ //\r
+ // hide specific groups\r
+ // \r
+ String param = applet.getParameter("hidefeaturegroups");\r
+ if (param != null)\r
+ {\r
+ newAlignFrame.setFeatureGroupState(separatorListToArray(param), false); \r
+// applet.setFeatureGroupStateOn(newAlignFrame, param, false);\r
+ }\r
+ // show specific groups\r
+ param = applet.getParameter("showfeaturegroups");\r
+ if (param != null)\r
+ {\r
+ newAlignFrame.setFeatureGroupState(separatorListToArray(param), true); \r
+// applet.setFeatureGroupStateOn(newAlignFrame, param, true);\r
+ }\r
+ // and now load features\r
+ param = applet.getParameter("features");\r
if (param != null)\r
{\r
param = setProtocolState(param);\r
protocols);\r
\r
}\r
- // ///////////////////////////\r
- // modify display of features\r
- //\r
- // hide specific groups\r
- param = applet.getParameter("hidefeaturegroups");\r
- if (param != null)\r
- {\r
- applet.setFeatureGroupStateOn(newAlignFrame, param, false);\r
- }\r
- // show specific groups\r
- param = applet.getParameter("showfeaturegroups");\r
- if (param != null)\r
- {\r
- applet.setFeatureGroupStateOn(newAlignFrame, param, true);\r
- }\r
}\r
else\r
{\r