// to be added, in the correct order or rendering\r
Vector featuresDisplayed;\r
\r
+ // A higher level for grouping features of a\r
+ // paritcular type\r
+ Hashtable featureGroups = null;\r
+\r
Color currentColour = null;\r
\r
boolean drawText = true;\r
if(sf==null)\r
continue;\r
\r
+ if(featureGroups!=null\r
+ && sf.getFeatureGroup()!=null\r
+ && featureGroups.containsKey(sf.getFeatureGroup())\r
+ && !((Boolean)featureGroups.get(sf.getFeatureGroup())).booleanValue())\r
+ {\r
+ continue;\r
+ }\r
+\r
\r
if (sf.getBegin() > seq.getEnd())\r
{\r
featureColours.put(featureType, col);\r
}\r
\r
+ public void addNewFeature(String name, Color col)\r
+ {\r
+ setColour(name, col);\r
+ if (featuresDisplayed == null)\r
+ featuresDisplayed = new Vector();\r
+ featuresDisplayed.insertElementAt(name, 0);\r
+ }\r
+\r
+\r
/* public void setTransparency(float value)\r
{\r
transparency = value;\r