comparison flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java @ 4047:3dc26ec2558d

Removed dead code
author Sascha L. Teichmann <teichmann@intevation.de>
date Sat, 06 Oct 2012 11:08:24 +0200
parents 2d2ca7bf70a7
children a93699cb31eb
comparison
equal deleted inserted replaced
4046:ca208b2f35a0 4047:3dc26ec2558d
161 super.addAnnotationsToRenderer(plot); 161 super.addAnnotationsToRenderer(plot);
162 162
163 // Paints for the boxes/lines. 163 // Paints for the boxes/lines.
164 Stroke basicStroke = new BasicStroke(1.0f); 164 Stroke basicStroke = new BasicStroke(1.0f);
165 165
166 Paint linePaint = new Color(255, 0,0,60); 166 // XXX: DEAD CODE // Paint linePaint = new Color(255, 0,0,60);
167 Paint fillPaint = new Color(0, 255,0,60); 167 Paint fillPaint = new Color(0, 255,0,60);
168 Paint tranPaint = new Color(0, 0,0, 0); 168 Paint tranPaint = new Color(0, 0,0, 0);
169 169
170 // OPTMIMIZE: Pre-calculate positions 170 // OPTMIMIZE: Pre-calculate positions
171 ChartArea area = new ChartArea( 171 ChartArea area = new ChartArea(
175 for(FLYSAnnotation fa : this.annotations) { 175 for(FLYSAnnotation fa : this.annotations) {
176 176
177 // Access text styling, if any. 177 // Access text styling, if any.
178 Document theme = fa.getTheme(); 178 Document theme = fa.getTheme();
179 TextStyle textStyle = null; 179 TextStyle textStyle = null;
180 LineStyle lineStyle = null; 180 // XXX: DEAD CODE // LineStyle lineStyle = null;
181 181
182 // Get Themeing information and add legend item. 182 // Get Themeing information and add legend item.
183 if (theme != null) { 183 if (theme != null) {
184 ThemeAccess themeAccess = new ThemeAccess(theme); 184 ThemeAccess themeAccess = new ThemeAccess(theme);
185 textStyle = themeAccess.parseTextStyle(); 185 textStyle = themeAccess.parseTextStyle();
186 lineStyle = themeAccess.parseLineStyle(); 186 // XXX: DEAD CODE // lineStyle = themeAccess.parseLineStyle();
187 if (fa.getLabel() != null) { 187 if (fa.getLabel() != null) {
188 LegendItemCollection lic = new LegendItemCollection(); 188 LegendItemCollection lic = new LegendItemCollection();
189 LegendItemCollection old = plot.getFixedLegendItems(); 189 LegendItemCollection old = plot.getFixedLegendItems();
190 lic.add(createLegendItem(theme, fa.getLabel())); 190 lic.add(createLegendItem(theme, fa.getLabel()));
191 // (Re-)Add prior legend entries. 191 // (Re-)Add prior legend entries.

http://dive4elements.wald.intevation.org