Mercurial > dive4elements > river
changeset 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 (2012-09-03) |
parents | 9f485f9fe8f9 |
children | 6bfcbe391393 |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/exports/TimeseriesChartGenerator.java |
diffstat | 2 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Sun Sep 02 08:44:50 2012 +0000 +++ b/flys-artifacts/ChangeLog Mon Sep 03 12:40:01 2012 +0000 @@ -1,3 +1,8 @@ +2012-09-03 Raimund Renkert <raimund.renkert@intevation.de> + + * src/main/java/de/intevation/flys/exports/TimeseriesChartGenerator.java: + Fixed URLs for logos. + 2012-09-02 Felix Wolfsteller <felix.wolfsteller@intevation.de> Fix issue744 (wrong ranges for w/q input).
--- 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();