comparison flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixDeltaWtGenerator.java @ 3406:3732e1bab0aa

Add kilometer to chart titles flys-artifacts/trunk@5058 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Christian Lins <christian.lins@intevation.de>
date Thu, 19 Jul 2012 11:40:59 +0000
parents d7b065b88f10
children 50d61a2494cb
comparison
equal deleted inserted replaced
3405:b0ba96bbf01d 3406:3732e1bab0aa
104 return msg(I18N_CHART_TITLE, I18N_CHART_TITLE); 104 return msg(I18N_CHART_TITLE, I18N_CHART_TITLE);
105 } 105 }
106 106
107 107
108 @Override 108 @Override
109 protected String getChartTitle() {
110 return Resources.format(
111 context.getMeta(),
112 I18N_CHART_TITLE,
113 "",
114 getCurrentKmFromRequest());
115 }
116
117
118 @Override
109 protected String getDefaultChartSubtitle() { 119 protected String getDefaultChartSubtitle() {
110 FixationArtifactAccess access = new FixationArtifactAccess(artifact); 120 FixationArtifactAccess access = new FixationArtifactAccess(artifact);
111 DateRange range = access.getDateRange(); 121 DateRange range = access.getDateRange();
112 return Resources.format( 122 return Resources.format(
113 context.getMeta(), 123 context.getMeta(),
456 466
457 StyledValueMarker marker = new StyledValueMarker(0, request); 467 StyledValueMarker marker = new StyledValueMarker(0, request);
458 valueMarker.add(marker); 468 valueMarker.add(marker);
459 } 469 }
460 470
461 public Double getCurrentKmFromRequest() { 471 protected double getCurrentKmFromRequest() {
462 Element km = (Element)XMLUtils.xpath( 472 Element km = (Element)XMLUtils.xpath(
463 request, 473 request,
464 XPATH_CHART_CURRENTKM, 474 XPATH_CHART_CURRENTKM,
465 XPathConstants.NODE, 475 XPathConstants.NODE,
466 ArtifactNamespaceContext.INSTANCE); 476 ArtifactNamespaceContext.INSTANCE);

http://dive4elements.wald.intevation.org