From: amwaterhouse Date: Tue, 8 May 2007 07:56:43 +0000 (+0000) Subject: mirror image recitified X-Git-Tag: Release_2_3~41 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=196e2f7e691d28bd3a92dbe093798aae7e5c63dc;p=jalview.git mirror image recitified --- diff --git a/src/MCview/AppletPDBCanvas.java b/src/MCview/AppletPDBCanvas.java index e11e558..ab8a35c 100755 --- a/src/MCview/AppletPDBCanvas.java +++ b/src/MCview/AppletPDBCanvas.java @@ -589,12 +589,12 @@ public class AppletPDBCanvas xstart = (int) ( ( (tmpBond.start[0] - centre[0]) * scale) + (getSize().width / 2)); - ystart = (int) ( ( (tmpBond.start[1] - centre[1]) * scale) + + ystart = (int) ( ( (centre[1] - tmpBond.start[1] ) * scale) + (getSize().height / 2)); xend = (int) ( ( (tmpBond.end[0] - centre[0]) * scale) + (getSize().width / 2)); - yend = (int) ( ( (tmpBond.end[1] - centre[1]) * scale) + + yend = (int) ( ( (centre[1] - tmpBond.end[1] ) * scale) + (getSize().height / 2)); xmid = (xend + xstart) / 2; @@ -915,7 +915,7 @@ public class AppletPDBCanvas { int xstart = (int) ( ( (b.start[0] - centre[0]) * scale) + (getSize().width / 2)); - int ystart = (int) ( ( (b.start[1] - centre[1]) * scale) + + int ystart = (int) ( ( (centre[1] - b.start[1]) * scale) + (getSize().height / 2)); g.setColor(Color.red); @@ -926,7 +926,7 @@ public class AppletPDBCanvas { int xstart = (int) ( ( (b.end[0] - centre[0]) * scale) + (getSize().width / 2)); - int ystart = (int) ( ( (b.end[1] - centre[1]) * scale) + + int ystart = (int) ( ( (centre[1] - b.end[1]) * scale) + (getSize().height / 2)); g.setColor(Color.red); @@ -960,7 +960,7 @@ public class AppletPDBCanvas if (Math.abs(truex - x) <= 2) { - int truey = (int) ( ( (tmpBond.start[1] - centre[1]) * scale) + + int truey = (int) ( ( (centre[1] - tmpBond.start[1] ) * scale) + (getSize().height / 2)); if (Math.abs(truey - y) <= 2) diff --git a/src/MCview/PDBCanvas.java b/src/MCview/PDBCanvas.java index dcaea2b..79871e8 100755 --- a/src/MCview/PDBCanvas.java +++ b/src/MCview/PDBCanvas.java @@ -571,12 +571,12 @@ public class PDBCanvas xstart = (int) ( ( (tmpBond.start[0] - centre[0]) * scale) + (getWidth() / 2)); - ystart = (int) ( ( (tmpBond.start[1] - centre[1]) * scale) + + ystart = (int) ( ( (centre[1] - tmpBond.start[1] ) * scale) + (getHeight() / 2)); xend = (int) ( ( (tmpBond.end[0] - centre[0]) * scale) + (getWidth() / 2)); - yend = (int) ( ( (tmpBond.end[1] - centre[1]) * scale) + + yend = (int) ( ( (centre[1] - tmpBond.end[1] ) * scale) + (getHeight() / 2)); xmid = (xend + xstart) / 2; @@ -888,7 +888,7 @@ public class PDBCanvas { int xstart = (int) ( ( (b.start[0] - centre[0]) * scale) + (getWidth() / 2)); - int ystart = (int) ( ( (b.start[1] - centre[1]) * scale) + + int ystart = (int) ( ( (centre[1] - b.start[1] ) * scale) + (getHeight() / 2)); g.drawString(b.at1.resName + "-" + b.at1.resNumber, xstart, ystart); @@ -898,7 +898,7 @@ public class PDBCanvas { int xstart = (int) ( ( (b.end[0] - centre[0]) * scale) + (getWidth() / 2)); - int ystart = (int) ( ( (b.end[1] - centre[1]) * scale) + + int ystart = (int) ( ( (centre[1] - b.end[1] ) * scale) + (getHeight() / 2)); g.drawString(b.at2.resName + "-" + b.at2.resNumber, xstart, ystart); @@ -931,7 +931,7 @@ public class PDBCanvas if (Math.abs(truex - x) <= 2) { - int truey = (int) ( ( (tmpBond.start[1] - centre[1]) * scale) + + int truey = (int) ( ( (centre[1] - tmpBond.start[1] ) * scale) + (getHeight() / 2)); if (Math.abs(truey - y) <= 2)