From 5825bd1ee04099b0c81e325cb5cf360c8977b07e Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Wed, 15 Feb 2006 15:25:09 +0000 Subject: [PATCH] Add new Feature --- src/jalview/gui/FeatureRenderer.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/jalview/gui/FeatureRenderer.java b/src/jalview/gui/FeatureRenderer.java index 3f332b5..69ecf14 100755 --- a/src/jalview/gui/FeatureRenderer.java +++ b/src/jalview/gui/FeatureRenderer.java @@ -239,6 +239,14 @@ public class FeatureRenderer return (Color)featureColours.get(featureType); } + public void addNewFeature(String name, Color col) + { + setColour(name, col); + if(featuresDisplayed==null) + featuresDisplayed = new Vector(); + featuresDisplayed.insertElementAt(name, 0); + } + public void setColour(String featureType, Color col) { featureColours.put(featureType, col); -- 1.7.10.2