From: amwaterhouse Date: Wed, 15 Feb 2006 15:25:09 +0000 (+0000) Subject: Add new Feature X-Git-Tag: Root_VamJalview_2_07b+~129 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=5825bd1ee04099b0c81e325cb5cf360c8977b07e;p=jalview.git Add new Feature --- 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);