+ g.setColor(tmpBond.endCol.darker());\r
+ drawLine(g, xmid, ymid, xend, yend);\r
+ }\r
+ else\r
+ {\r
+ g.setColor(tmpBond.startCol);\r
+ drawLine(g, xstart, ystart, xmid, ymid);\r
+\r
+ g.setColor(tmpBond.endCol);\r
+ drawLine(g, xmid, ymid, xend, yend);\r
+ }\r
+ }\r
+ else if (depthcue && bymolecule)\r
+ {\r
+ if (tmpBond.start[2] < (centre[2] - (maxwidth / 6)))\r
+ {\r
+ g.setColor(Color.green.darker().darker());\r
+ drawLine(g, xstart, ystart, xend, yend);\r
+ }\r
+ else if (tmpBond.start[2] < (centre[2] + (maxwidth / 6)))\r
+ {\r
+ g.setColor(Color.green.darker());\r
+ drawLine(g, xstart, ystart, xend, yend);\r
+ }\r
+ else\r
+ {\r
+ g.setColor(Color.green);\r
+ drawLine(g, xstart, ystart, xend, yend);\r
+ }\r
+ }\r
+ else if (!depthcue && !bymolecule)\r
+ {\r
+ g.setColor(tmpBond.startCol);\r
+ drawLine(g, xstart, ystart, xmid, ymid);\r
+ g.setColor(tmpBond.endCol);\r
+ drawLine(g, xmid, ymid, xend, yend);\r
+ }\r
+ else\r
+ {\r
+ drawLine(g, xstart, ystart, xend, yend);\r
+ }\r