comparison artifacts/src/main/java/org/dive4elements/river/artifacts/states/minfo/BedQualityPeriodsSelect.java @ 8652:22f01b7e802e

User smarter new interface from RangeAccess.
author "Tom Gottfried <tom@intevation.de>"
date Wed, 01 Apr 2015 13:11:30 +0200
parents 97d60b0afe24
children 8dbb969091c5
comparison
equal deleted inserted replaced
8651:81a8e3043794 8652:22f01b7e802e
58 58
59 /** Get either the start and end date of the data at the current position. */ 59 /** Get either the start and end date of the data at the current position. */
60 protected Long[] getDataMinMaxDate(Artifact artifact) { 60 protected Long[] getDataMinMaxDate(Artifact artifact) {
61 D4EArtifact arti = (D4EArtifact) artifact; 61 D4EArtifact arti = (D4EArtifact) artifact;
62 RangeAccess access = new RangeAccess(arti); 62 RangeAccess access = new RangeAccess(arti);
63 double a = access.getFrom(); 63 double a = access.getFrom(true);
64 double b = access.getTo(); 64 double b = access.getTo(true);
65
66 if (a > b) {
67 double buf = a;
68 a = b;
69 b = buf;
70 }
71 65
72 BedOverview overview = BedOverviewFactory.getOverview(access.getRiverName()); 66 BedOverview overview = BedOverviewFactory.getOverview(access.getRiverName());
73 BedloadOverview overview2 = BedloadOverviewFactory.getOverview(access.getRiverName()); 67 BedloadOverview overview2 = BedloadOverviewFactory.getOverview(access.getRiverName());
74 68
75 /* Filter is not implemented and only checks if a complete 69 /* Filter is not implemented and only checks if a complete

http://dive4elements.wald.intevation.org