small sphere for alpha carbon
authoramwaterhouse <Andrew Waterhouse>
Tue, 8 May 2007 10:08:11 +0000 (10:08 +0000)
committeramwaterhouse <Andrew Waterhouse>
Tue, 8 May 2007 10:08:11 +0000 (10:08 +0000)
src/jalview/appletgui/AppletJmol.java
src/jalview/gui/AppJmol.java

index 14e6704..45243b0 100644 (file)
@@ -441,15 +441,11 @@ public class AppletJmol extends Frame
       resetLastRes.append(":" + chain);
     }
 
-    eval.append(";wireframe 100");//;color gold
+    eval.append(";wireframe 100;"+eval.toString()+".CA;");
 
-    Color col = new Color(viewer.getAtomArgb(atomIndex));
+    resetLastRes.append(";wireframe 0;"+resetLastRes.toString()+".CA;spacefill 0;");
 
-    resetLastRes.append(";wireframe 0;"//color["
-                       // + col.getRed() + ","
-                       // + col.getGreen() + ","
-                       // + col.getBlue() + "]"
-                       );
+    eval.append("spacefill 200;select none");
 
     viewer.evalStringQuiet(eval.toString());
 
index ad8b54c..7aa0183 100644 (file)
@@ -588,17 +588,13 @@ public synchronized void addSequence(SequenceI [] seq)
       resetLastRes.append(":" + chain);
     }
 
-    eval.append(";wireframe 100");//color gold;
+    eval.append(";wireframe 100;"+eval.toString()+".CA;");
 
-   // Color col = new Color(viewer.getAtomArgb(atomIndex));
+    resetLastRes.append(";wireframe 0;"+resetLastRes.toString()+".CA;spacefill 0;");
 
-    resetLastRes.append(";wireframe 0;select none;");//color["
-                       // + col.getRed() + ","
-                       // + col.getGreen() + ","
-                       // + col.getBlue() + "];
+    eval.append("spacefill 200;select none");
 
     viewer.evalStringQuiet(eval.toString());
-
   }
 
   public Color getColour(int atomIndex, int pdbResNum, String chain, String pdbfile)