X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fapi%2FFeatureRenderer.java;h=404c49725c5724ef70ddb46af04b6d5b25098505;hb=07addcb8a9c7904b60e19f637c5258849987c2a6;hp=cf3c8da9513d718ea8e3212e1a9fbe157eb17754;hpb=14b1b2a878190d5fffda298c4b9a901c72c74ad3;p=jalview.git
diff --git a/src/jalview/api/FeatureRenderer.java b/src/jalview/api/FeatureRenderer.java
index cf3c8da..404c497 100644
--- a/src/jalview/api/FeatureRenderer.java
+++ b/src/jalview/api/FeatureRenderer.java
@@ -255,14 +255,29 @@ public interface FeatureRenderer
*
* Returns null if
*
- * - feature type is not visible, or
* - feature group is not visible, or
* - feature values lie outside any colour threshold, or
* - feature is excluded by filter conditions
*
+ * This method does not check feature type visibility.
*
* @param feature
* @return
*/
Color getColour(SequenceFeature feature);
+
+ /**
+ * Answers true if feature would be shown, else false. A feature is shown if
+ *
+ * - its feature type is set to visible
+ * - its feature group is either null, or set to visible
+ * - it is not excluded by a colour threshold on score or other numeric
+ * attribute
+ * - it is not excluded by a filter condition
+ *
+ *
+ * @param feature
+ * @return
+ */
+ boolean isVisible(SequenceFeature feature);
}