From 1492414a0eee8241ba615517cdbaac8df9b35892 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Mon, 23 Apr 2007 11:48:54 +0000 Subject: [PATCH] Get colour from structure added --- src/jalview/gui/AppJMol.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/jalview/gui/AppJMol.java b/src/jalview/gui/AppJMol.java index da94e4c..e3aa9ea 100644 --- a/src/jalview/gui/AppJMol.java +++ b/src/jalview/gui/AppJMol.java @@ -195,8 +195,6 @@ public synchronized void addSequence(SequenceI [] seq) jmolpopup = JmolPopup.newJmolPopup(viewer); viewer.evalStringQuiet(command); - - colourBySequence = true; } @@ -582,6 +580,14 @@ public synchronized void addSequence(SequenceI [] seq) } + public Color getColour(int atomIndex, int pdbResNum, String chain, String pdbfile) + { + if (!pdbfile.equals(pdbentry.getFile())) + return null; + + return new Color(viewer.getAtomArgb(atomIndex)); + } + public void updateColours(Object source) { colourBySequence( (AlignmentPanel) source); -- 1.7.10.2