X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fapi%2FFeatureColourI.java;h=98a37c4e93698cc7a846aae059506256ae98869d;hb=e1dbbc5edc07f65706eeb1dda9f4c9bcdee9d3a5;hp=0e456757001bffea9023ef6a85ed73b4447067e4;hpb=c184de2a81afe5ba6f8b7b68dde221c256e70195;p=jalview.git diff --git a/src/jalview/api/FeatureColourI.java b/src/jalview/api/FeatureColourI.java index 0e45675..98a37c4 100644 --- a/src/jalview/api/FeatureColourI.java +++ b/src/jalview/api/FeatureColourI.java @@ -194,8 +194,20 @@ public interface FeatureColourI void setAttributeName(String... name); /** - * Answers a human-readable text description of the colour, suitable for - * display as a tooltip, possibly internationalised for the user's locale. + * Answers true if colour has a threshold set, and the feature score (or other + * attribute selected for colouring) is outwith the threshold. + *

+ * Answers false if not a graduated colour, or no threshold is set, or value + * is not outwith the threshold, or value is null or non-numeric. + * + * @param sf + * @return + */ + boolean isOutwithThreshold(SequenceFeature sf); + + /** + * Answers a human-readable text description of the colour, suitable for display + * as a tooltip, possibly internationalised for the user's locale. * * @return */