From: amwaterhouse Date: Mon, 14 Nov 2005 11:58:49 +0000 (+0000) Subject: Dont add sequence group at the moment X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=4264327f75849700f5c0e3a1c21ae21fd7402986;p=jalview.git Dont add sequence group at the moment --- diff --git a/src/MCview/PDBCanvas.java b/src/MCview/PDBCanvas.java index 7b6021d..2bc934f 100755 --- a/src/MCview/PDBCanvas.java +++ b/src/MCview/PDBCanvas.java @@ -179,6 +179,15 @@ public class PDBCanvas extends JPanel implements MouseListener, MouseMotionListe } }); + /* + SequenceGroup sg = new SequenceGroup("PDB", + null, true,true,false, + sequence.findIndex(seqstart-1), + sequence.findIndex(seqend-1)); + sg.addSequence(sequence, false); + sg.setOutlineColour(Color.black); + seqcanvas.getViewport().getAlignment().addGroup(sg); + */ findCentre(); findWidth(); @@ -643,20 +652,26 @@ public class PDBCanvas extends JPanel implements MouseListener, MouseMotionListe void drawLabels(Graphics g) { - for (int ii = 0; ii < pdb.chains.size(); ii++) { + for (int ii = 0; ii < pdb.chains.size(); ii++) + { PDBChain chain = (PDBChain) pdb.chains.elementAt(ii); - if (chain.isVisible) { + if (chain.isVisible) + { Vector bonds = ((PDBChain) pdb.chains.elementAt(ii)).bonds; - for (int i = 0; i < bonds.size(); i++) { + for (int i = 0; i < bonds.size(); i++) + { Bond tmpBond = (Bond) bonds.elementAt(i); - if (tmpBond.at1.isSelected) { + if (tmpBond.at1.isSelected) + { labelAtom(g, tmpBond, 1); } - if (tmpBond.at2.isSelected) { + if (tmpBond.at2.isSelected) + { + labelAtom(g, tmpBond, 2); } }