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:
40513f0
)
Get colour from structure added
author
amwaterhouse
<Andrew Waterhouse>
Mon, 23 Apr 2007 11:48:54 +0000
(11:48 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Mon, 23 Apr 2007 11:48:54 +0000
(11:48 +0000)
src/jalview/gui/AppJMol.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/AppJMol.java
b/src/jalview/gui/AppJMol.java
index
da94e4c
..
e3aa9ea
100644
(file)
--- 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);