X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fappletgui%2FAnnotationRowFilter.java;h=8d67d71860230339ad32ab18d6d498b7952390de;hb=84724ad7b25f65eb6009f70d9b4cb89fc6796622;hp=8a0a44a21d0d4b93e6da9414d6200161725123e6;hpb=1d4b37e9bd54c095aa00e643b741c931eb61c58b;p=jalview.git diff --git a/src/jalview/appletgui/AnnotationRowFilter.java b/src/jalview/appletgui/AnnotationRowFilter.java index 8a0a44a..8d67d71 100644 --- a/src/jalview/appletgui/AnnotationRowFilter.java +++ b/src/jalview/appletgui/AnnotationRowFilter.java @@ -1,3 +1,23 @@ +/* + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors + * + * 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 + * 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.appletgui; import jalview.schemes.AnnotationColourGradient; @@ -13,8 +33,6 @@ import java.awt.TextField; import java.awt.event.ActionEvent; import java.util.Vector; - - @SuppressWarnings("serial") public abstract class AnnotationRowFilter extends Panel { @@ -56,7 +74,6 @@ public abstract class AnnotationRowFilter extends Panel */ protected boolean sliderDragging = false; - public AnnotationRowFilter(AlignViewport av, final AlignmentPanel ap) { this.av = av; @@ -68,46 +85,6 @@ public abstract class AnnotationRowFilter extends Panel } - - public Vector getAnnotationItems(boolean isSeqAssociated) - { - Vector list = new Vector(); - int index = 1; - int[] anmap = new int[av.getAlignment().getAlignmentAnnotation().length]; - for (int i = 0; i < av.getAlignment().getAlignmentAnnotation().length; i++) - { - if (av.getAlignment().getAlignmentAnnotation()[i].sequenceRef == null) - { - if (isSeqAssociated) - { - continue; - } - } - else - { - enableSeqAss = true; - } - String label = av.getAlignment().getAlignmentAnnotation()[i].label; - if (!list.contains(label)) - { - anmap[list.size()] = i; - list.add(label); - - } - else - { - if (!isSeqAssociated) - { - anmap[list.size()] = i; - list.add(label + "_" + (index++)); - } - } - } - this.annmap = new int[list.size()]; - System.arraycopy(anmap, 0, this.annmap, 0, this.annmap.length); - return list; - } - protected int getSelectedThresholdItem(int indexValue) { int selectedThresholdItem = -1; @@ -167,18 +144,16 @@ public abstract class AnnotationRowFilter extends Panel } } - protected void populateThresholdComboBox(Choice threshold) { threshold.addItem(MessageManager - .getString("label.threshold_feature_no_thereshold")); + .getString("label.threshold_feature_no_threshold")); threshold.addItem(MessageManager - .getString("label.threshold_feature_above_thereshold")); + .getString("label.threshold_feature_above_threshold")); threshold.addItem(MessageManager - .getString("label.threshold_feature_below_thereshold")); + .getString("label.threshold_feature_below_threshold")); } - public jalview.datamodel.AlignmentAnnotation getCurrentAnnotation() { return currentAnnotation; @@ -195,4 +170,4 @@ public abstract class AnnotationRowFilter extends Panel public abstract void updateView(); public abstract void reset(); -} \ No newline at end of file +}