Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/TimeseriesChartGenerator.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 |
---|---|
166 if (logo == null) { | 166 if (logo == null) { |
167 log.debug("No logo to show chosen"); | 167 log.debug("No logo to show chosen"); |
168 return; | 168 return; |
169 } | 169 } |
170 | 170 |
171 ImageIcon imageIcon = null; | |
172 if (logo.equals("none")) { | |
173 return; | |
174 } | |
175 /* | 171 /* |
176 If you want to add images, remember to change code in these places: | 172 If you want to add images, remember to change code in these places: |
177 flys-artifacts: | 173 flys-artifacts: |
178 XYChartGenerator.java | 174 XYChartGenerator.java |
179 Timeseries*Generator.java and | 175 Timeseries*Generator.java and |
181 Also, these images have to be put in | 177 Also, these images have to be put in |
182 flys-artifacts/src/main/resources/images/ | 178 flys-artifacts/src/main/resources/images/ |
183 flys-client/src/main/webapp/images/ | 179 flys-client/src/main/webapp/images/ |
184 */ | 180 */ |
185 java.net.URL imageURL; | 181 java.net.URL imageURL; |
186 if (logo.equals("Intevation")) { | 182 if (logo.equals("BfG")) { |
187 imageURL = XYChartGenerator.class.getResource( | |
188 "/images/intevation.png"); | |
189 } | |
190 else { // TODO else if ... | |
191 imageURL = XYChartGenerator.class.getResource( | 183 imageURL = XYChartGenerator.class.getResource( |
192 "/images/bfg_logo.gif"); | 184 "/images/bfg_logo.gif"); |
193 } | 185 } else { |
194 imageIcon = new ImageIcon(imageURL); | 186 return; |
187 } | |
188 ImageIcon imageIcon = new ImageIcon(imageURL); | |
195 double xPos = 0d, yPos = 0d; | 189 double xPos = 0d, yPos = 0d; |
196 | 190 |
197 String placeh = logoHPlace(); | 191 String placeh = logoHPlace(); |
198 String placev = logoVPlace(); | 192 String placev = logoVPlace(); |
199 | 193 |