X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjalview%2Fio%2FFormatAdapter.java;h=bdc015cbb4043954248552878e2d04431be91238;hb=9d75efeeb9a6e51bd328f56e376dca4e007b635c;hp=dec784bbe72243a1c4a28f091171e6fc1a29184b;hpb=153dd62dc91da13ae732600e6ea55ddbe15eab39;p=jalview.git diff --git a/src/jalview/io/FormatAdapter.java b/src/jalview/io/FormatAdapter.java index dec784b..bdc015c 100755 --- a/src/jalview/io/FormatAdapter.java +++ b/src/jalview/io/FormatAdapter.java @@ -1,13 +1,13 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.6) - * Copyright (C) 2010 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle + * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8) + * Copyright (C) 2012 J Procter, AM Waterhouse, LM Lui, J Engelhardt, G Barton, M Clamp, S Searle * * This file is part of Jalview. * * Jalview 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 3 of the License, or (at your option) any later version. - * + * * Jalview 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 @@ -36,7 +36,7 @@ public class FormatAdapter extends AppletFormatAdapter } /** - * create sequences with each seuqence string replaced with the one given in + * create sequences with each sequence string replaced with the one given in * omitHiddenCOlumns * * @param seqs @@ -194,9 +194,10 @@ public class FormatAdapter extends AppletFormatAdapter { if (omitHidden != null) { - // - Alignment alv = new Alignment(replaceStrings(alignment - .getSequencesArray(), omitHidden)); + // TODO consider using AlignmentView to prune to visible region + // TODO prune sequence annotation and groups to visible region + Alignment alv = new Alignment(replaceStrings( + alignment.getSequencesArray(), omitHidden)); AlignmentAnnotation[] ala = alignment.getAlignmentAnnotation(); if (ala != null) { @@ -205,8 +206,8 @@ public class FormatAdapter extends AppletFormatAdapter AlignmentAnnotation na = new AlignmentAnnotation(ala[i]); if (selgp != null) { - colSel.makeVisibleAnnotation(selgp.getStartRes(), selgp - .getEndRes(), na); + colSel.makeVisibleAnnotation(selgp.getStartRes(), + selgp.getEndRes(), na); } else {