X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2FAlignmentI.java;h=06026ef7f692233568d44db95f7ff3d2ab075f89;hb=fc853e3c385e32591ceac07070d37932fcf87941;hp=3d6103719e91ad10cb4005169008ffd04d2630f5;hpb=6357db6c20614a666b7b446aeb3260c5379637eb;p=jalview.git diff --git a/src/jalview/datamodel/AlignmentI.java b/src/jalview/datamodel/AlignmentI.java index 3d61037..06026ef 100755 --- a/src/jalview/datamodel/AlignmentI.java +++ b/src/jalview/datamodel/AlignmentI.java @@ -1,13 +1,13 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7) - * Copyright (C) 2011 J Procter, AM Waterhouse, J Engelhardt, LM Lui, 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,6 +36,7 @@ public interface AlignmentI extends AnnotatedCollectionI * * @return Greatest sequence length within alignment. */ + @Override public int getWidth(); /** @@ -57,7 +58,7 @@ public interface AlignmentI extends AnnotatedCollectionI /** * Gets sequences as a Synchronized collection - * + * * @return All sequences in alignment. */ @Override @@ -237,6 +238,7 @@ public interface AlignmentI extends AnnotatedCollectionI * * @return array of AlignmentAnnotation objects */ + @Override public AlignmentAnnotation[] getAlignmentAnnotation(); /** @@ -435,19 +437,31 @@ public interface AlignmentI extends AnnotatedCollectionI /** * search for or create a specific annotation row on the alignment - * - * @param method - CalcId for the annotation (must match) - * @param autoCalc - value of autocalc flag for the annotation - * @param seqRef - null or specific sequence reference - * @param groupRef - null or specific group reference - * @return existing annotation matching the given attributes + * + * @param name + * name for annotation (must match) + * @param calcId + * calcId for the annotation (null or must match) + * @param autoCalc + * - value of autocalc flag for the annotation + * @param seqRef + * - null or specific sequence reference + * @param groupRef + * - null or specific group reference + * @param method + * - CalcId for the annotation (must match) + * + * @return existing annotation matching the given attributes */ - public AlignmentAnnotation findOrCreateAnnotation(String name, boolean autoCalc, - SequenceI seqRef, SequenceGroup groupRef); + public AlignmentAnnotation findOrCreateAnnotation(String name, + String calcId, boolean autoCalc, SequenceI seqRef, + SequenceGroup groupRef); /** - * move the given group up or down in the alignment by the given number of rows. - * Implementor assumes given group is already present on alignment - no recalculations are triggered. + * move the given group up or down in the alignment by the given number of + * rows. Implementor assumes given group is already present on alignment - no + * recalculations are triggered. + * * @param sg * @param map * @param up