comparison artifacts/src/main/java/org/dive4elements/river/exports/LegendProcessor.java @ 7254:fe32a7f9655e

Reduce usage of careless 'for (int i = 0; i < x.size(); i++)' pattern.
author Sascha L. Teichmann <teichmann@intevation.de>
date Sat, 05 Oct 2013 17:52:16 +0200
parents af13ceeba52a
children 5e38e2924c07
comparison
equal deleted inserted replaced
7253:90a3bcd8060a 7254:fe32a7f9655e
117 // Unfortunately we cannot clone and just setDescription, as this 117 // Unfortunately we cannot clone and just setDescription, as this
118 // method was added in JFreeChart 1.0.14 (we are at .13). 118 // method was added in JFreeChart 1.0.14 (we are at .13).
119 119
120 // Remove the shapes of all but the first items, 120 // Remove the shapes of all but the first items,
121 // to prevent "overfill" of legenditemblock. 121 // to prevent "overfill" of legenditemblock.
122 for (int i = 0; i < itemList.size(); i++) { 122 for (int i = 0, I = itemList.size(); i < I; i++) {
123 if (i != 0) { 123 if (i != 0) {
124 LegendItem litem = itemList.get(i); 124 LegendItem litem = itemList.get(i);
125 125
126 // Make shape and line really small. 126 // Make shape and line really small.
127 LegendItem merged = new LegendItem( 127 LegendItem merged = new LegendItem(

http://dive4elements.wald.intevation.org