X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fworkers%2FFeatureSetCounterI.java;fp=src%2Fjalview%2Fworkers%2FFeatureCounterI.java;h=e14952fd0e0509974f253b6a6defbc28a7df4779;hb=136c0793b90b72b928c4d77dc109dd5c644e00d3;hp=3a080ecef209b646885d4db1ae6d5bf232f22174;hpb=8677e6e34e291edc58c1da2fc9c958473754143f;p=jalview.git
diff --git a/src/jalview/workers/FeatureCounterI.java b/src/jalview/workers/FeatureSetCounterI.java
similarity index 76%
rename from src/jalview/workers/FeatureCounterI.java
rename to src/jalview/workers/FeatureSetCounterI.java
index 3a080ec..e14952f 100644
--- a/src/jalview/workers/FeatureCounterI.java
+++ b/src/jalview/workers/FeatureSetCounterI.java
@@ -18,6 +18,7 @@
* along with Jalview. If not, see .
* The Jalview Authors are detailed in the 'AUTHORS' file.
*/
+
package jalview.workers;
import jalview.datamodel.SequenceFeature;
@@ -25,15 +26,16 @@ import jalview.datamodel.SequenceFeature;
import java.util.List;
/**
- * An interface for a type that returns counts of any value of interest at a
- * sequence position that can be determined from the sequence character and any
- * features present at that position
+ * An interface for a type that returns counts (per computed annotation type) of
+ * any value of interest at a sequence position that can be determined from the
+ * sequence character and any features present at that position
*
*/
-public interface FeatureCounterI
+public interface FeatureSetCounterI
{
/**
- * Returns a count of some property of interest, for example
+ * Returns counts (per annotation type) of some properties of interest, for
+ * example
*
* - the number of variant features at the position
* - the number of Cath features of status 'True Positive'
@@ -46,22 +48,22 @@ public interface FeatureCounterI
* @param a
* list of any sequence features which include the position
*/
- int count(String residue, List features);
+ int[] count(String residue, List features);
/**
- * Returns a name for the annotation that this is counting, for use as the
- * displayed label
+ * Returns names for the annotations that this is counting, for use as the
+ * displayed labels
*
* @return
*/
- String getName();
+ String[] getNames();
/**
- * Returns a description for the annotation, for display as a tooltip
+ * Returns descriptions for the annotations, for display as tooltips
*
* @return
*/
- String getDescription();
+ String[] getDescriptions();
/**
* Returns the colour (as [red, green, blue] values in the range 0-255) to use