From c2632af10ee5c7c72dea1316cb42dabf1ea4a407 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Tue, 8 May 2007 10:08:11 +0000 Subject: [PATCH] small sphere for alpha carbon --- src/jalview/appletgui/AppletJmol.java | 10 +++------- src/jalview/gui/AppJmol.java | 10 +++------- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/src/jalview/appletgui/AppletJmol.java b/src/jalview/appletgui/AppletJmol.java index 14e6704..45243b0 100644 --- a/src/jalview/appletgui/AppletJmol.java +++ b/src/jalview/appletgui/AppletJmol.java @@ -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()); diff --git a/src/jalview/gui/AppJmol.java b/src/jalview/gui/AppJmol.java index ad8b54c..7aa0183 100644 --- a/src/jalview/gui/AppJmol.java +++ b/src/jalview/gui/AppJmol.java @@ -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) -- 1.7.10.2