getColour method added
authoramwaterhouse <Andrew Waterhouse>
Mon, 23 Apr 2007 12:47:53 +0000 (12:47 +0000)
committeramwaterhouse <Andrew Waterhouse>
Mon, 23 Apr 2007 12:47:53 +0000 (12:47 +0000)
src/MCview/AppletPDBCanvas.java
src/jalview/appletgui/AppletJmol.java

index 0c7320d..c3ad10e 100755 (executable)
@@ -1144,6 +1144,16 @@ public class AppletPDBCanvas
     repaint();
   }
 
+
+  public Color getColour(int atomIndex, int pdbResNum, String chain, String pdbfile)
+  {
+    return Color.white;
+   // if (!pdbfile.equals(pdbentry.getFile()))
+   //   return null;
+
+    //return new Color(viewer.getAtomArgb(atomIndex));
+  }
+
   public void updateColours(Object source)
   {
     AlignmentPanel ap = (AlignmentPanel) source;
index b7e67c1..3f3c3dd 100644 (file)
@@ -461,6 +461,14 @@ public class AppletJmol extends Frame
 //End StructureListener
 ////////////////////////////
 
+  public Color getColour(int atomIndex, int pdbResNum, String chain, String pdbfile)
+  {
+    if (!pdbfile.equals(pdbentry.getFile()))
+      return null;
+
+    return new Color(viewer.getAtomArgb(atomIndex));
+  }
+
   FeatureRenderer fr;
   public void colourBySequence(AlignmentPanel ap)
   {