X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fschemes%2FFeatureColour.java;h=f1bade151686ca674cfd23fae878ea45e64e9270;hb=57738a1f3c19b1c3a00bd3ac5108f8cd0af32f99;hp=e5bda58f853bb16173a6a21765b69e8fec7760e1;hpb=e7338a61f3ce96dadf44ac80b2b32cc5ba4b94c8;p=jalview.git diff --git a/src/jalview/schemes/FeatureColour.java b/src/jalview/schemes/FeatureColour.java index e5bda58..f1bade1 100644 --- a/src/jalview/schemes/FeatureColour.java +++ b/src/jalview/schemes/FeatureColour.java @@ -48,8 +48,9 @@ import java.util.StringTokenizer; *
  • the range may be the full value range, or may be limited by the threshold * value
  • * - *
  • colour by (text) value of a named attribute
  • graduated colour by - * (numeric) value of a named attribute
  • + *
  • colour by (text) value of a named attribute
  • + *
  • graduated colour by (numeric) value of a named attribute
  • + * */ public class FeatureColour implements FeatureColourI { @@ -698,8 +699,8 @@ public class FeatureColour implements FeatureColourI { String label = attributeName == null ? feature.getDescription() : feature.getValueAsString(attributeName); - return label == null ? noColour : ColorUtils - .createColourFromName(label); + return label == null ? noColour + : ColorUtils.createColourFromName(label); } if (!isGraduatedColour()) @@ -825,7 +826,7 @@ public class FeatureColour implements FeatureColourI sb.append(BAR).append(Format.getHexString(getMinColour())) .append(BAR); sb.append(Format.getHexString(getMaxColour())).append(BAR); - + /* * 'no value' colour should be null, min or max colour; * if none of these, coerce to minColour