Add new Feature
authoramwaterhouse <Andrew Waterhouse>
Wed, 15 Feb 2006 15:25:09 +0000 (15:25 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 15 Feb 2006 15:25:09 +0000 (15:25 +0000)
src/jalview/gui/FeatureRenderer.java

index 3f332b5..69ecf14 100755 (executable)
@@ -239,6 +239,14 @@ public class FeatureRenderer
       return (Color)featureColours.get(featureType);\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
     public void setColour(String featureType, Color col)\r
     {\r
       featureColours.put(featureType, col);\r