Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontal/HorizontalProfileOutputState.java @ 348:ec95d3248576
Included case, that there is no start or end date while creating subtitles of horizontalprofile charts.
gnv-artifacts/trunk@418 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 11 Dec 2009 11:18:21 +0000 |
parents | 2e43542e6a11 |
children | 2f7a28f211c7 |
comparison
equal
deleted
inserted
replaced
347:2f84ac484d8c | 348:ec95d3248576 |
---|---|
275 catch (java.text.ParseException pe) { | 275 catch (java.text.ParseException pe) { |
276 log.warn("Error while parsing date: " + data.getValue(), pe); | 276 log.warn("Error while parsing date: " + data.getValue(), pe); |
277 } | 277 } |
278 } | 278 } |
279 | 279 |
280 subTitle = format.format(startDate) + " - " + format.format(endDate); | 280 if (startDate != null && endDate != null) |
281 subTitle = format.format(startDate)+" - "+format.format(endDate); | |
282 | |
283 subTitle = subTitle == null ? "" : subTitle; | |
284 | |
281 log.debug("created title for horizontal profile chart: " + subTitle); | 285 log.debug("created title for horizontal profile chart: " + subTitle); |
282 | 286 |
283 return subTitle; | 287 return subTitle; |
284 } | 288 } |
285 } | 289 } |