X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2FAlignmentView.java;h=c5019d1aec59e94643326637f47377798c8a572d;hb=0e2054d29bc49351f000d478659dc3c4371b251c;hp=37f5e5c5b80e95c6f8ade149b3d048880d64b1bc;hpb=59d682209891099d46b960509907c79e3fb276fe;p=jalview.git diff --git a/src/jalview/datamodel/AlignmentView.java b/src/jalview/datamodel/AlignmentView.java index 37f5e5c..c5019d1 100644 --- a/src/jalview/datamodel/AlignmentView.java +++ b/src/jalview/datamodel/AlignmentView.java @@ -1,6 +1,6 @@ /* - * 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 + * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.1) + * Copyright (C) 2014 The Jalview Authors * * This file is part of Jalview. * @@ -14,6 +14,7 @@ * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along with Jalview. If not, see . + * The Jalview Authors are detailed in the 'AUTHORS' file. */ package jalview.datamodel; @@ -45,6 +46,16 @@ public class AlignmentView */ private Vector scGroups; + private boolean isNa=false; + /** + * false if the view concerns peptides + * @return + */ + public boolean isNa() + { + return isNa; + } + /** * Group defined over SeqCigars. Unlike AlignmentI associated groups, each * SequenceGroup hold just the essential properties for the group, but no @@ -98,6 +109,7 @@ public class AlignmentView (selectedRegionOnly ? selection : null)), (selectedRegionOnly && selection != null) ? selection .getStartRes() : 0); + isNa = alignment.isNucleotide(); // walk down SeqCigar array and Alignment Array - optionally restricted by // selected region. // test group membership for each sequence in each group, store membership