From: amwaterhouse Date: Tue, 8 May 2007 10:08:11 +0000 (+0000) Subject: small sphere for alpha carbon X-Git-Tag: Release_2_3~39 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c2632af10ee5c7c72dea1316cb42dabf1ea4a407;p=jalview.git small sphere for alpha carbon --- 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)