X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2FMCview%2FBond.java;h=281e1118fdaffcb15f03d073a6a269b0e9dfd301;hb=2eeea2f43d7bbaafd79ebd4185b42fc60646d9e3;hp=17f66bba2f5ab5028bdfcb9ac0061ebe34e70c53;hpb=588042b69abf8e60bcc950b24c283933c7dd422f;p=jalview.git diff --git a/src/MCview/Bond.java b/src/MCview/Bond.java index 17f66bb..281e111 100755 --- a/src/MCview/Bond.java +++ b/src/MCview/Bond.java @@ -24,12 +24,12 @@ import java.awt.*; public class Bond { float[] start; float[] end; - Color startCol; - Color endCol; - public myAtom at1; - public myAtom at2; + Color startCol = Color.lightGray; + Color endCol= Color.lightGray; + public Atom at1; + public Atom at2; - public Bond(float[] start, float[] end, myAtom at1, myAtom at2) { + public Bond(float[] start, float[] end, Atom at1, Atom at2) { this.start = start; this.end = end; this.startCol = at1.color; @@ -38,7 +38,7 @@ public class Bond { this.at2 = at2; } - public Bond(Bond bond) { + /* public Bond(Bond bond) { this.start = new float[3]; this.start[0] = bond.start[0]; @@ -55,12 +55,6 @@ public class Bond { this.endCol = bond.endCol; } - public void print() { - System.out.println("Start " + start[0] + " " + start[1] + " " + - start[2]); - System.out.println("End " + end[0] + " " + end[1] + " " + end[2]); - } - public float length() { float len = ((end[0] - start[0]) * (end[0] - start[0])) + ((end[1] - start[1]) * (end[1] - start[1])) + @@ -69,7 +63,7 @@ public class Bond { len = (float) (Math.sqrt(len)); return len; - } + }*/ public void translate(float x, float y, float z) { start[0] = (start[0] + x);