Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java @ 3623:119b8ba2b77f
Include logos in resources.
flys-artifacts/trunk@5300 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 29 Aug 2012 23:46:21 +0000 |
parents | 6772e9f9b65f |
children | ebfce31c7eec |
comparison
equal
deleted
inserted
replaced
3622:5e505060a9bf | 3623:119b8ba2b77f |
---|---|
282 | 282 |
283 ImageIcon imageIcon = null; | 283 ImageIcon imageIcon = null; |
284 if (logo.equals("none")) { | 284 if (logo.equals("none")) { |
285 return; | 285 return; |
286 } | 286 } |
287 /* | |
288 If you want to add images, remember to change code in these places: | |
289 flys-artifacts: | |
290 XYChartGenerator.java | |
291 Timeseries*Generator.java and | |
292 in the flys-client projects Chart*Propert*Editor.java. | |
293 */ | |
294 java.net.URL imageURL; | |
287 if (logo.equals("Intevation")) { | 295 if (logo.equals("Intevation")) { |
288 imageIcon = new ImageIcon("/home/felix/Downloads/intevation_logo_120.png"); | 296 imageURL = XYChartGenerator.class.getResource("/images/intevation.png"); |
289 } | 297 } |
290 else { // TODO else if ... | 298 else { // TODO else if ... |
291 imageIcon = new ImageIcon("/home/felix/Downloads/bfg_logo.gif"); | 299 imageURL = XYChartGenerator.class.getResource("/images/bfg_logo.gif"); |
292 } | 300 } |
301 imageIcon = new ImageIcon(imageURL); | |
302 | |
293 | 303 |
294 double xPos = 0d, yPos = 0d; | 304 double xPos = 0d, yPos = 0d; |
295 | 305 |
296 String placeh = logoHPlace(); | 306 String placeh = logoHPlace(); |
297 String placev = logoVPlace(); | 307 String placev = logoVPlace(); |