X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fapi%2FFeatureColourI.java;h=1fcbfd07c3d378cf970d4f1ea408239865df62e2;hb=c1589fc13c75e8c71455ff07a0041d37426a60f7;hp=0a333caf761a51499a313c7f2cecf91798574bc9;hpb=0b1c761dfaa8242f122cf868e8897a06ec6eb727;p=jalview.git diff --git a/src/jalview/api/FeatureColourI.java b/src/jalview/api/FeatureColourI.java index 0a333ca..1fcbfd0 100644 --- a/src/jalview/api/FeatureColourI.java +++ b/src/jalview/api/FeatureColourI.java @@ -14,8 +14,6 @@ public interface FeatureColourI */ boolean isGraduatedColour(); - void setGraduatedColour(boolean b); - /** * Returns the feature colour (when isGraduatedColour answers false) * @@ -95,6 +93,13 @@ public interface FeatureColourI void setThreshold(float f); + /** + * Answers true if the colour varies between the actual minimum and maximum + * score values of the feature, or false if between absolute minimum and + * maximum values (or if not a graduated colour). + * + * @return + */ boolean isAutoScaled(); void setAutoScaled(boolean b); @@ -146,4 +151,11 @@ public interface FeatureColourI * @param max */ void updateBounds(float min, float max); + + /** + * Returns the colour in Jalview features file format + * + * @return + */ + String toJalviewFormat(String featureType); }