Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/exports/LegendProcessor.java @ 8856:5e38e2924c07 3.2.x
Fix code style.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 18 Jan 2018 20:12:01 +0100 |
parents | fe32a7f9655e |
children | d8e753d0fdb9 |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/LegendProcessor.java Thu Jan 18 20:10:59 2018 +0100 +++ b/artifacts/src/main/java/org/dive4elements/river/exports/LegendProcessor.java Thu Jan 18 20:12:01 2018 +0100 @@ -38,7 +38,8 @@ * @return hash for given legenditem to identify mergeables. */ protected static String legendItemHash(LegendItem li) { - // TODO Do proper implementation. Ensure that only mergable sets are created. + // TODO Do proper implementation. + // Ensure that only mergable sets are created. // getFillPaint() // getFillPaintTransformer() // getLabel() @@ -86,7 +87,8 @@ return; } - HashMap<String, List<LegendItem>> entries = new LinkedHashMap<String, List<LegendItem>>(); + HashMap<String, List<LegendItem>> entries = + new LinkedHashMap<String, List<LegendItem>>(); for (Iterator<LegendItem> i = old.iterator(); i.hasNext();) { LegendItem item = i.next(); String hash = legendItemHash(item); @@ -114,8 +116,9 @@ if (itemList.size() >= AGGR_THRESHOLD) { // Now do merging. // XXX: DEAD CODE // LegendItem item = itemList.get(0); - // Unfortunately we cannot clone and just setDescription, as this - // method was added in JFreeChart 1.0.14 (we are at .13). + // Unfortunately we cannot clone and just setDescription, + // as this method was added in JFreeChart 1.0.14 + // (we are at .13). // Remove the shapes of all but the first items, // to prevent "overfill" of legenditemblock. @@ -125,11 +128,21 @@ // Make shape and line really small. LegendItem merged = new LegendItem( - "," + litem.getLabel(), litem.getDescription(), litem.getToolTipText(), - litem.getURLText(), false, SPACE, - false, litem.getFillPaint(), false, - litem.getOutlinePaint(), litem.getOutlineStroke(), false, - SPACE, litem.getLineStroke(), litem.getLinePaint()); + "," + litem.getLabel(), + litem.getDescription(), + litem.getToolTipText(), + litem.getURLText(), + false, + SPACE, + false, + litem.getFillPaint(), + false, + litem.getOutlinePaint(), + litem.getOutlineStroke(), + false, + SPACE, + litem.getLineStroke(), + litem.getLinePaint()); newLegend.add(merged); } else {