X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2FMCview%2FBond.java;h=fd364465bc739882fa54cc0b9baa334a84beee5e;hb=77c35fa912621cbadcf5ec74da4c6d45de6322e1;hp=17f66bba2f5ab5028bdfcb9ac0061ebe34e70c53;hpb=588042b69abf8e60bcc950b24c283933c7dd422f;p=jalview.git diff --git a/src/MCview/Bond.java b/src/MCview/Bond.java index 17f66bb..fd36446 100755 --- a/src/MCview/Bond.java +++ b/src/MCview/Bond.java @@ -1,6 +1,6 @@ /* * Jalview - A Sequence Alignment Editor and Viewer -* Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle +* Copyright (C) 2006 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -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);