X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fworkers%2FColumnCounterWorker.java;h=dd56aaf78c070fd68801536b57aa9d4453bad4dc;hb=c0b7a760fe1ced5fe25ee3c3fd272e03f7526fa2;hp=4e1a336c17e77564305fde43a7ec1764f5ba85b4;hpb=f5be72936a417898b982510adf7e23d2f313c59a;p=jalview.git diff --git a/src/jalview/workers/ColumnCounterWorker.java b/src/jalview/workers/ColumnCounterWorker.java index 4e1a336..dd56aaf 100644 --- a/src/jalview/workers/ColumnCounterWorker.java +++ b/src/jalview/workers/ColumnCounterWorker.java @@ -168,8 +168,7 @@ class ColumnCounterWorker extends AlignCalcWorker */ AlignmentAnnotation ann = alignViewport.getAlignment() .findOrCreateAnnotation(counter.getName(), - counter.getDescription(), false, null, - null); + counter.getDescription(), false, null, null); ann.description = counter.getDescription(); ann.showAllColLabels = true; ann.scaleColLabel = true; @@ -184,35 +183,6 @@ class ColumnCounterWorker extends AlignCalcWorker } /** - * Calculate min and max values of annotations and set as graphMin, graphMax - * on the AlignmentAnnotation. This is needed because otherwise, well, bad - * things happen. - * - * @param ann - * @param anns - */ - private void setGraphMinMax(AlignmentAnnotation ann, Annotation[] anns) - { - // TODO feels like this belongs inside AlignmentAnnotation! - float max = Float.MIN_VALUE; - float min = Float.MAX_VALUE; - boolean set = false; - for (Annotation a : anns) { - if (a != null) { - set = true; - float val = a.value; - max = Math.max(max, val); - min = Math.min(min, val); - } - } - if (set) - { - ann.graphMin = min; - ann.graphMax = max; - } - } - - /** * Returns a count of any feature types present at the specified position of * the alignment *