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:
cc6d340
)
comma separated rgb values
author
amwaterhouse
<Andrew Waterhouse>
Fri, 7 Oct 2005 10:24:56 +0000
(10:24 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Fri, 7 Oct 2005 10:24:56 +0000
(10:24 +0000)
src/jalview/schemes/UserColourScheme.java
patch
|
blob
|
history
diff --git
a/src/jalview/schemes/UserColourScheme.java
b/src/jalview/schemes/UserColourScheme.java
index
660441e
..
4b963fe
100755
(executable)
--- a/
src/jalview/schemes/UserColourScheme.java
+++ b/
src/jalview/schemes/UserColourScheme.java
@@
-38,6
+38,16
@@
public class UserColourScheme
col = ColourSchemeProperty.getAWTColorFromName(colour);
\r
\r
if(col==null)
\r
+ {try{
\r
+ java.util.StringTokenizer st = new java.util.StringTokenizer(colour, ",");
\r
+ int r = Integer.parseInt( st.nextToken() );
\r
+ int g = Integer.parseInt( st.nextToken() );
\r
+ int b = Integer.parseInt( st.nextToken() );
\r
+ col = new Color(r,g,b);
\r
+ }catch(Exception ex){}
\r
+ }
\r
+
\r
+ if(col==null)
\r
{
\r
System.out.println("Unknown colour!! "+colour);
\r
}
\r