boolean pdbAction = false;\r
Bond highlightBond1, highlightBond2;\r
boolean errorLoading = false;\r
+ boolean seqColoursReady = false;\r
\r
public AppletPDBCanvas(jalview.appletgui.SeqCanvas seqcanvas, Sequence seq)\r
{\r
Vector visiblebonds;\r
void setupBonds()\r
{\r
+ seqColoursReady = false;\r
// Sort the bonds by z coord\r
visiblebonds = new Vector();\r
\r
}\r
}\r
updateSeqColours();\r
+ seqColoursReady = true;\r
redrawneeded = true;\r
repaint();\r
}\r
g.drawString("Error loading PDB data!!", 50, getSize().height/2);\r
return;\r
}\r
- else if(visiblebonds==null)\r
+ else if( !seqColoursReady )\r
{\r
g.setColor(Color.black);\r
g.setFont(new Font("Verdana", Font.BOLD, 14));\r
PDBChain mainchain;\r
Vector highlightRes;\r
boolean pdbAction = false;\r
+ boolean seqColoursReady = false;\r
\r
public PDBCanvas(jalview.gui.SeqCanvas seqcanvas, Sequence seq)\r
{\r
Vector visiblebonds;\r
void setupBonds()\r
{\r
+ seqColoursReady = false;\r
// Sort the bonds by z coord\r
visiblebonds = new Vector();\r
\r
}\r
\r
updateSeqColours();\r
+ seqColoursReady = true;\r
redrawneeded = true;\r
repaint();\r
}\r
{\r
super.paintComponent(g);\r
\r
- if(visiblebonds==null)\r
+ if(!seqColoursReady)\r
{\r
g.setColor(Color.black);\r
g.setFont(new Font("Verdana", Font.BOLD, 14));\r