}\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
\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