Dont add sequence group at the moment
authoramwaterhouse <Andrew Waterhouse>
Mon, 14 Nov 2005 11:58:49 +0000 (11:58 +0000)
committeramwaterhouse <Andrew Waterhouse>
Mon, 14 Nov 2005 11:58:49 +0000 (11:58 +0000)
src/MCview/PDBCanvas.java

index 7b6021d..2bc934f 100755 (executable)
@@ -179,6 +179,15 @@ public class PDBCanvas extends JPanel implements MouseListener, MouseMotionListe
           }\r
        });\r
 \r
+      /*\r
+       SequenceGroup sg = new SequenceGroup("PDB",\r
+                                            null, true,true,false,\r
+                                            sequence.findIndex(seqstart-1),\r
+                                            sequence.findIndex(seqend-1));\r
+       sg.addSequence(sequence, false);\r
+       sg.setOutlineColour(Color.black);\r
+       seqcanvas.getViewport().getAlignment().addGroup(sg);\r
+       */\r
 \r
         findCentre();\r
         findWidth();\r
@@ -643,20 +652,26 @@ public class PDBCanvas extends JPanel implements MouseListener, MouseMotionListe
 \r
     void drawLabels(Graphics g) {\r
 \r
-        for (int ii = 0; ii < pdb.chains.size(); ii++) {\r
+        for (int ii = 0; ii < pdb.chains.size(); ii++)\r
+        {\r
             PDBChain chain = (PDBChain) pdb.chains.elementAt(ii);\r
 \r
-            if (chain.isVisible) {\r
+            if (chain.isVisible)\r
+            {\r
                 Vector bonds = ((PDBChain) pdb.chains.elementAt(ii)).bonds;\r
 \r
-                for (int i = 0; i < bonds.size(); i++) {\r
+                for (int i = 0; i < bonds.size(); i++)\r
+                {\r
                     Bond tmpBond = (Bond) bonds.elementAt(i);\r
 \r
-                    if (tmpBond.at1.isSelected) {\r
+                    if (tmpBond.at1.isSelected)\r
+                    {\r
                         labelAtom(g, tmpBond, 1);\r
                     }\r
 \r
-                    if (tmpBond.at2.isSelected) {\r
+                    if (tmpBond.at2.isSelected)\r
+                    {\r
+\r
                         labelAtom(g, tmpBond, 2);\r
                     }\r
                 }\r