X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2FMCview%2FPDBfile.java;h=63728ae816fe12b96a448fde9e38f7febb4aa25a;hb=750f211967f5b32a50fc773c43f3c5f5cd277ee7;hp=7e46b2e2d91a5aee70e688e0f861d6f510cf99ba;hpb=22be3f466cd70cb03d5eae619ede8589ae69716a;p=jalview.git diff --git a/src/MCview/PDBfile.java b/src/MCview/PDBfile.java index 7e46b2e..63728ae 100755 --- a/src/MCview/PDBfile.java +++ b/src/MCview/PDBfile.java @@ -1,144 +1,186 @@ +/* +* Jalview - A Sequence Alignment Editor and Viewer +* Copyright (C) 2005 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 +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +*/ package MCview; -import jalview.gui.*; import java.io.*; + import java.net.*; + import java.util.*; +import java.awt.Color; +import jalview.io.AppletFormatAdapter; public class PDBfile extends jalview.io.FileParse { + public Vector chains = new Vector(); + Vector lineArray = new Vector(); + public String id; - public Vector chains = new Vector(); + public PDBfile(String[] lines) { + for (int i = 0; i < lines.length; i++) + lineArray.addElement(lines[i]); - Vector lineArray = new Vector(); + parse(); + } - public PDBfile(String [] lines) - { - for(int i=0; i