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