comparison artifacts/src/main/java/org/dive4elements/river/exports/DiagramGenerator.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
274 if (logo == null) { 274 if (logo == null) {
275 log.debug("No logo to show chosen"); 275 log.debug("No logo to show chosen");
276 return; 276 return;
277 } 277 }
278 278
279 ImageIcon imageIcon = null;
280 if (logo.equals("none")) {
281 return;
282 }
283 /* 279 /*
284 If you want to add images, remember to change code in these places: 280 If you want to add images, remember to change code in these places:
285 flys-artifacts: 281 flys-artifacts:
286 DiagramGenerator.java 282 DiagramGenerator.java
287 Timeseries*Generator.java and 283 Timeseries*Generator.java and
289 Also, these images have to be put in 285 Also, these images have to be put in
290 flys-artifacts/src/main/resources/images/ 286 flys-artifacts/src/main/resources/images/
291 flys-client/src/main/webapp/images/ 287 flys-client/src/main/webapp/images/
292 */ 288 */
293 java.net.URL imageURL; 289 java.net.URL imageURL;
294 if (logo.equals("Intevation")) { 290 if (logo.equals("BfG")) {
295 imageURL = DiagramGenerator.class.getResource(
296 "/images/intevation.png");
297 }
298 else { // TODO else if ...
299 imageURL = DiagramGenerator.class.getResource( 291 imageURL = DiagramGenerator.class.getResource(
300 "/images/bfg_logo.gif"); 292 "/images/bfg_logo.gif");
301 } 293 } else {
302 imageIcon = new ImageIcon(imageURL); 294 return;
295 }
296 ImageIcon imageIcon = new ImageIcon(imageURL);
303 297
304 298
305 double xPos = 0d, yPos = 0d; 299 double xPos = 0d, yPos = 0d;
306 300
307 String placeh = logoHPlace(); 301 String placeh = logoHPlace();

http://dive4elements.wald.intevation.org