\r
scale = findScale();\r
\r
-\r
- updateSeqColours();\r
ToolTipManager.sharedInstance().registerComponent(this);\r
ToolTipManager.sharedInstance().setInitialDelay(0);\r
ToolTipManager.sharedInstance().setDismissDelay(10000);\r
}\r
}\r
}\r
+\r
+ updateSeqColours();\r
+ redrawneeded = true;\r
+ repaint();\r
}\r
\r
\r
{\r
for (int ii = 0; ii < pdb.chains.size(); ii++)\r
{\r
- colourBySequence( mainchain );\r
+ colourBySequence( (PDBChain) pdb.chains.elementAt(ii));\r
}\r
}\r
\r
tmp.startCol = Color.lightGray;\r
tmp.endCol = Color.lightGray;\r
\r
+ if(chain!=mainchain)\r
+ continue;\r
+\r
if ( (tmp.at1.resNumber >= ( (chain.offset + chain.pdbstart) - 1)) &&\r
(tmp.at1.resNumber <= ( (chain.offset + chain.pdbend) - 1)))\r
{\r
\r
public void drawScene(Graphics g)\r
{\r
-\r
-\r
if (zbuffer)\r
{\r
Zsort.Zsort(visiblebonds);\r
if (tmpBond.start[2] < (centre[2] - (maxwidth / 6))) {\r
g.setColor(tmpBond.startCol.darker().darker());\r
drawLine(g, xstart, ystart, xmid, ymid);\r
-\r
g.setColor(tmpBond.endCol.darker().darker());\r
drawLine(g, xmid, ymid, xend, yend);\r
} else if (tmpBond.start[2] < (centre[2] + (maxwidth / 6))) {\r
mainchain.isVisible = true;\r
findCentre();\r
setupBonds();\r
- redrawneeded = true;\r
- repaint();\r
}\r
}\r
Atom tmpatom = new Atom(line);\r
\r
//Jalview is only interested in CA bonds????\r
- // if(!tmpatom.name.equals("CA"))\r
- // continue;\r
+ if(!tmpatom.name.equals("CA"))\r
+ continue;\r
\r
tmpchain = findChain(tmpatom.chain);\r
if ( tmpchain != null)\r