Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixWQCurveGenerator.java @ 4866:acfd48384835
Changed data field names in fix analsis to ld_from, ld_to, ld step.
* Changed names in state model.
* Changed data fields in artifact.
* Use RangeAccess to get location/distance data.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Fri, 25 Jan 2013 11:53:04 +0100 |
parents | 3937c6a85db4 |
children | 1b73b731f7bd |
comparison
equal
deleted
inserted
replaced
4865:1358d0c8481c | 4866:acfd48384835 |
---|---|
503 return msg(I18N_CHART_TITLE, I18N_CHART_TITLE_DEFAULT); | 503 return msg(I18N_CHART_TITLE, I18N_CHART_TITLE_DEFAULT); |
504 } | 504 } |
505 | 505 |
506 @Override | 506 @Override |
507 protected String getDefaultChartSubtitle() { | 507 protected String getDefaultChartSubtitle() { |
508 FixAnalysisAccess access = new FixAnalysisAccess(artifact); | 508 FixAnalysisAccess access = new FixAnalysisAccess(artifact, context); |
509 DateRange dateRange = access.getDateRange(); | 509 DateRange dateRange = access.getDateRange(); |
510 DateRange refRange = access.getReferencePeriod(); | 510 DateRange refRange = access.getReferencePeriod(); |
511 | 511 |
512 if (dateRange != null && refRange != null) { | 512 if (dateRange != null && refRange != null) { |
513 return Resources.format( | 513 return Resources.format( |
535 chart.addSubtitle(new TextTitle(defaultSubtitle)); | 535 chart.addSubtitle(new TextTitle(defaultSubtitle)); |
536 | 536 |
537 StringBuilder buf = new StringBuilder(); | 537 StringBuilder buf = new StringBuilder(); |
538 | 538 |
539 // Add analysis periods as additional subtitle | 539 // Add analysis periods as additional subtitle |
540 FixAnalysisAccess access = new FixAnalysisAccess(artifact); | 540 FixAnalysisAccess access = new FixAnalysisAccess(artifact, context); |
541 DateRange[] aperiods = access.getAnalysisPeriods(); | 541 DateRange[] aperiods = access.getAnalysisPeriods(); |
542 buf.append(msg("fix.analysis.periods")); | 542 buf.append(msg("fix.analysis.periods")); |
543 buf.append(": "); | 543 buf.append(": "); |
544 for(int n = 0; n < aperiods.length; n++) { | 544 for(int n = 0; n < aperiods.length; n++) { |
545 buf.append( | 545 buf.append( |