X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fschemes%2FFeatureColour.java;fp=src%2Fjalview%2Fschemes%2FFeatureColour.java;h=f1bade151686ca674cfd23fae878ea45e64e9270;hb=3459a8a691cb22508d7067f240b7254e588e77d3;hp=e5bda58f853bb16173a6a21765b69e8fec7760e1;hpb=5b27f1062b2203c4c31702e205f4c78e1992063e;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