Project

General

Profile

Revision 08180809

ID08180809e39c0cd3ecabdf3dea4160aa7964b72c
Parent aba1b9d9
Child c31186f9

Added by Patrick Plitzner over 3 years ago

ref #7575 Label update for quantitative data

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/MatrixUtility.java
41 41
     * @return a string representation of the data
42 42
     */
43 43
    public static String getQuantitativeLabel(QuantitativeData data) {
44
        return data.getStatisticalValues().stream().
44
        String label = "";
45
        Float min = data.getMin();
46
        Float max = data.getMax();
47
        if(min!=null||max!=null){
48
            label += "["+(min!=null?min.toString():"?")+"-"+(max!=null?max.toString():"?")+"] ";
49
        }
50
        label += data.getStatisticalValues().stream().
45 51
        filter(value->value.getType().equals(StatisticalMeasure.EXACT_VALUE()))
46 52
        .map(exact->Float.toString(exact.getValue()))
47 53
        .collect(Collectors.joining(", "));
54

  
55
        return label;
48 56
    }
49 57

  
50 58
    /**

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)