X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fapi%2FFeaturesDisplayedI.java;h=9387e3fe787599cc42ee332e800a8a5268e63bf2;hb=353cb52722490edcba2c13b18836b6d37c5455de;hp=9ed5ae597506c86cb3673fc46e75d8ec580ca129;hpb=552a68778a21f29fe5a05fd6840f7f3864e544b1;p=jalview.git diff --git a/src/jalview/api/FeaturesDisplayedI.java b/src/jalview/api/FeaturesDisplayedI.java index 9ed5ae5..9387e3f 100644 --- a/src/jalview/api/FeaturesDisplayedI.java +++ b/src/jalview/api/FeaturesDisplayedI.java @@ -1,12 +1,35 @@ +/* + * 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.api; import java.util.Collection; -import java.util.Iterator; +import java.util.Set; public interface FeaturesDisplayedI { - Iterator getVisibleFeatures(); + /** + * answers an unmodifiable view of the set of visible feature types + */ + Set getVisibleFeatures(); boolean isVisible(String featureType); @@ -16,6 +39,14 @@ public interface FeaturesDisplayedI void setVisible(String featureType); + void setHidden(String featureType); + + /** + * Sets all the specified feature types to visible. Visibility of other + * feature types is not changed. + * + * @param featureTypes + */ void setAllVisible(Collection featureTypes); boolean isRegistered(String type); @@ -24,6 +55,6 @@ public interface FeaturesDisplayedI int getVisibleFeatureCount(); - int getRegisterdFeaturesCount(); + int getRegisteredFeaturesCount(); }