diff flys-artifacts/src/main/java/de/intevation/flys/exports/TimeseriesChartGenerator.java @ 3637:d5a0602375fb

Fixed logo integration in timeseries charts. flys-artifacts/trunk@5346 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Mon, 03 Sep 2012 12:40:01 +0000
parents ebfce31c7eec
children 6bfcbe391393
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/TimeseriesChartGenerator.java	Sun Sep 02 08:44:50 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/TimeseriesChartGenerator.java	Mon Sep 03 12:40:01 2012 +0000
@@ -274,13 +274,14 @@
          Timeseries*Generator.java and
          in the flys-client projects Chart*Propert*Editor.java.
          */
+        java.net.URL imageURL;
         if (logo.equals("Intevation")) {
-            imageIcon = new ImageIcon("/home/felix/Downloads/intevation_logo_120.png");
+            imageURL = XYChartGenerator.class.getResource("/images/intevation.png");
         }
         else { // TODO else if ...
-            imageIcon = new ImageIcon("/home/felix/Downloads/bfg_logo.gif");
+            imageURL = XYChartGenerator.class.getResource("/images/bfg_logo.gif");
         }
-
+        imageIcon = new ImageIcon(imageURL);
         double xPos = 0d, yPos = 0d;
 
         String placeh = logoHPlace();

http://dive4elements.wald.intevation.org