Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/chart/NaviChartOutputTab.java @ 8856:5e38e2924c07 3.2.x
Fix code style.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 18 Jan 2018 20:12:01 +0100 |
parents | bcaf66443b93 |
children | 02739b8c010d |
comparison
equal
deleted
inserted
replaced
8855:d7c005e12af0 | 8856:5e38e2924c07 |
---|---|
97 double toKm; | 97 double toKm; |
98 | 98 |
99 if (art instanceof FixAnalysisArtifact) { | 99 if (art instanceof FixAnalysisArtifact) { |
100 FixAnalysisArtifact fix = (FixAnalysisArtifact) art; | 100 FixAnalysisArtifact fix = (FixAnalysisArtifact) art; |
101 FixFilter fixFilter = fix.getFilter(); | 101 FixFilter fixFilter = fix.getFilter(); |
102 String s = fix.getArtifactDescription().getDataValueAsString("ld_step"); | 102 String s = fix.getArtifactDescription().getDataValueAsString( |
103 "ld_step"); | |
103 try { | 104 try { |
104 double ds = Double.parseDouble(s); | 105 double ds = Double.parseDouble(s); |
105 collectionView.setSteps(ds); | 106 collectionView.setSteps(ds); |
106 } | 107 } |
107 catch(NumberFormatException nfe) { | 108 catch(NumberFormatException nfe) { |
111 toKm = fixFilter.getToKm(); | 112 toKm = fixFilter.getToKm(); |
112 } | 113 } |
113 else { | 114 else { |
114 // Probably WINFOArtifact kind of artifact. | 115 // Probably WINFOArtifact kind of artifact. |
115 String ld_step = | 116 String ld_step = |
116 art.getArtifactDescription().getDataValueAsString("ld_step"); | 117 art.getArtifactDescription().getDataValueAsString( |
118 "ld_step"); | |
117 try { | 119 try { |
118 collectionView.setSteps(Double.valueOf(ld_step)); | 120 collectionView.setSteps(Double.valueOf(ld_step)); |
119 } | 121 } |
120 catch (Exception e) { | 122 catch (Exception e) { |
121 GWT.log("No ld_steps data or not parsable."); | 123 GWT.log("No ld_steps data or not parsable."); |
310 (FixAnalysisArtifact) collectionView.getArtifact(); | 312 (FixAnalysisArtifact) collectionView.getArtifact(); |
311 collectionView.setCurrentKm(fix.getFilter().getFromKm()); | 313 collectionView.setCurrentKm(fix.getFilter().getFromKm()); |
312 } | 314 } |
313 } | 315 } |
314 else if (collectionView.getCurrentKm() == -1) { | 316 else if (collectionView.getCurrentKm() == -1) { |
315 collectionView.setCurrentKm(collectionView.getArtifact().getArtifactDescription().getKMRange()[0]); | 317 collectionView.setCurrentKm( |
318 collectionView.getArtifact().getArtifactDescription() | |
319 .getKMRange()[0]); | |
316 } | 320 } |
317 if (collectionView.getCurrentKm() != -1) { | 321 if (collectionView.getCurrentKm() != -1) { |
318 imgUrl += "¤tKm=" + collectionView.getCurrentKm(); | 322 imgUrl += "¤tKm=" + collectionView.getCurrentKm(); |
319 } | 323 } |
320 | 324 |