git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8302463
)
Add new Feature
author
amwaterhouse
<Andrew Waterhouse>
Wed, 15 Feb 2006 15:25:09 +0000
(15:25 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Wed, 15 Feb 2006 15:25:09 +0000
(15:25 +0000)
src/jalview/gui/FeatureRenderer.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/FeatureRenderer.java
b/src/jalview/gui/FeatureRenderer.java
index
3f332b5
..
69ecf14
100755
(executable)
--- a/
src/jalview/gui/FeatureRenderer.java
+++ b/
src/jalview/gui/FeatureRenderer.java
@@
-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