X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fapi%2FFeatureRenderer.java;h=404c49725c5724ef70ddb46af04b6d5b25098505;hb=3c2061bc480aa7b95051103203885be2008797f8;hp=cf3c8da9513d718ea8e3212e1a9fbe157eb17754;hpb=1bc0cc2cbaf2e782e6b38cb8c82a9c4df0001db1;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);
}