Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/XYChartGenerator.java @ 9783:ae298eccc25c 3.2.x
Remove outdated Intevation logo
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 26 Apr 2023 16:28:07 +0200 |
parents | 0a5239a1e46e |
children | 672cfb850229 |
comparison
equal
deleted
inserted
replaced
9782:c670bf2ec4b0 | 9783:ae298eccc25c |
---|---|
189 if (logo == null) { | 189 if (logo == null) { |
190 log.debug("No logo to show chosen"); | 190 log.debug("No logo to show chosen"); |
191 return; | 191 return; |
192 } | 192 } |
193 | 193 |
194 ImageIcon imageIcon = null; | |
195 if (logo.equals("none")) { | |
196 return; | |
197 } | |
198 /* | 194 /* |
199 If you want to add images, remember to change code in these places: | 195 If you want to add images, remember to change code in these places: |
200 flys-artifacts: | 196 flys-artifacts: |
201 XYChartGenerator.java | 197 XYChartGenerator.java |
202 Timeseries*Generator.java and | 198 Timeseries*Generator.java and |
204 Also, these images have to be put in | 200 Also, these images have to be put in |
205 flys-artifacts/src/main/resources/images/ | 201 flys-artifacts/src/main/resources/images/ |
206 flys-client/src/main/webapp/images/ | 202 flys-client/src/main/webapp/images/ |
207 */ | 203 */ |
208 java.net.URL imageURL; | 204 java.net.URL imageURL; |
209 if (logo.equals("Intevation")) { | 205 if (logo.equals("BfG")) { |
210 imageURL = XYChartGenerator.class.getResource( | |
211 "/images/intevation.png"); | |
212 } | |
213 else { // TODO else if ... | |
214 imageURL = XYChartGenerator.class.getResource( | 206 imageURL = XYChartGenerator.class.getResource( |
215 "/images/bfg_logo.gif"); | 207 "/images/bfg_logo.gif"); |
216 } | 208 } else { |
217 imageIcon = new ImageIcon(imageURL); | 209 return; |
210 } | |
211 ImageIcon imageIcon = new ImageIcon(imageURL); | |
218 | 212 |
219 | 213 |
220 double xPos = 0d, yPos = 0d; | 214 double xPos = 0d, yPos = 0d; |
221 | 215 |
222 String placeh = logoHPlace(); | 216 String placeh = logoHPlace(); |