X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fappletgui%2FFeatureColourChooser.java;h=4075e8bd900f2883676c81d915b7c287bcbaafad;hb=e584930ae4941e8508c9073c6f08eb484a914bdf;hp=3dc69e6a5eda41e004b2ce8175f4a7337434bbba;hpb=db93a1adcbe0a4eaaf06e0a70ade0d6c5c1961c3;p=jalview.git diff --git a/src/jalview/appletgui/FeatureColourChooser.java b/src/jalview/appletgui/FeatureColourChooser.java index 3dc69e6..4075e8b 100644 --- a/src/jalview/appletgui/FeatureColourChooser.java +++ b/src/jalview/appletgui/FeatureColourChooser.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9.0b2) - * Copyright (C) 2015 The Jalview Authors + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors * * This file is part of Jalview. * @@ -95,9 +95,11 @@ public class FeatureColourChooser extends Panel implements ActionListener, float mm[] = fr.getMinMax().get(type)[0]; min = mm[0]; max = mm[1]; + threshline = new GraphLine((max - min) / 2f, "Threshold", Color.black); oldcs = fr.getFeatureColours().get(type); if (oldcs.isGraduatedColour()) { + threshline.value = oldcs.getThreshold(); cs = new FeatureColour((FeatureColour) oldcs, min, max); } else @@ -384,14 +386,6 @@ public class FeatureColourChooser extends Panel implements ActionListener, thresholdValue.setText(""); } - else if (aboveThreshold != AnnotationColourGradient.NO_THRESHOLD - && threshline == null) - { - // todo visual indication of feature threshold - threshline = new jalview.datamodel.GraphLine((max - min) / 2f, - "Threshold", Color.black); - } - if (aboveThreshold != AnnotationColourGradient.NO_THRESHOLD) { adjusting = true;