comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/chart/NaviChartOutputTab.java @ 9099:850ce16034e9

2.3.4.1.10 Berechnung mit Start-km > End-km
author gernotbelger
date Mon, 28 May 2018 13:22:45 +0200
parents 02739b8c010d
children abf14917be32
comparison
equal deleted inserted replaced
9098:32dd7e761e4e 9099:850ce16034e9
84 this.collectionView.setSteps(ds); 84 this.collectionView.setSteps(ds);
85 } 85 }
86 catch (final NumberFormatException nfe) { 86 catch (final NumberFormatException nfe) {
87 this.collectionView.setSteps(100d); 87 this.collectionView.setSteps(100d);
88 } 88 }
89 fromKm = fixFilter.getFromKm(); 89 fromKm = fixFilter.getLowerKm();
90 toKm = fixFilter.getToKm(); 90 toKm = fixFilter.getUpperKm();
91 } else { 91 } else {
92 // Probably WINFOArtifact kind of artifact. 92 // Probably WINFOArtifact kind of artifact.
93 final String ld_step = art.getArtifactDescription().getDataValueAsString("ld_step"); 93 final String ld_step = art.getArtifactDescription().getDataValueAsString("ld_step");
94 try { 94 try {
95 this.collectionView.setSteps(Double.valueOf(ld_step)); 95 this.collectionView.setSteps(Double.valueOf(ld_step));
290 } 290 }
291 291
292 if (this.collectionView.getArtifact() instanceof AbstractFixBunduArtifact) { 292 if (this.collectionView.getArtifact() instanceof AbstractFixBunduArtifact) {
293 if (this.collectionView.getCurrentKm() == -1) { 293 if (this.collectionView.getCurrentKm() == -1) {
294 final AbstractFixBunduArtifact fix = (AbstractFixBunduArtifact) this.collectionView.getArtifact(); 294 final AbstractFixBunduArtifact fix = (AbstractFixBunduArtifact) this.collectionView.getArtifact();
295 this.collectionView.setCurrentKm(fix.getFilter().getFromKm()); 295 this.collectionView.setCurrentKm(fix.getFilter().getLowerKm());
296 } 296 }
297 } else if (this.collectionView.getCurrentKm() == -1) { 297 } else if (this.collectionView.getCurrentKm() == -1) {
298 this.collectionView.setCurrentKm(this.collectionView.getArtifact().getArtifactDescription().getKMRange()[0]); 298 this.collectionView.setCurrentKm(this.collectionView.getArtifact().getArtifactDescription().getKMRange()[0]);
299 } 299 }
300 if (this.collectionView.getCurrentKm() != -1) { 300 if (this.collectionView.getCurrentKm() != -1) {

http://dive4elements.wald.intevation.org