Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedDiffHeightSubFilterFacet.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 | afa2096a1f15 |
children | 0a5239a1e46e |
comparison
equal
deleted
inserted
replaced
8855:d7c005e12af0 | 8856:5e38e2924c07 |
---|---|
30 | 30 |
31 | 31 |
32 public class BedDiffHeightSubFilterFacet | 32 public class BedDiffHeightSubFilterFacet |
33 extends DataFacet | 33 extends DataFacet |
34 { | 34 { |
35 private static Logger log = Logger.getLogger(BedDiffHeightSubFilterFacet.class); | 35 private static Logger log = Logger.getLogger( |
36 BedDiffHeightSubFilterFacet.class); | |
36 | 37 |
37 public BedDiffHeightSubFilterFacet() { | 38 public BedDiffHeightSubFilterFacet() { |
38 } | 39 } |
39 | 40 |
40 public BedDiffHeightSubFilterFacet(int idx, String name, String description, | 41 public BedDiffHeightSubFilterFacet( |
41 ComputeType type, String stateId, String hash) { | 42 int idx, |
43 String name, | |
44 String description, | |
45 ComputeType type, | |
46 String stateId, | |
47 String hash | |
48 ) { | |
42 super(idx, name, description, type, hash, stateId); | 49 super(idx, name, description, type, hash, stateId); |
43 this.metaData.put("X", "chart.longitudinal.section.xaxis.label"); | 50 this.metaData.put("X", "chart.longitudinal.section.xaxis.label"); |
44 this.metaData.put("Y", "chart.bedheight_middle.section.yaxis.label"); | 51 this.metaData.put("Y", "chart.bedheight_middle.section.yaxis.label"); |
45 } | 52 } |
46 | 53 |
63 RiverAccess access = new RiverAccess((D4EArtifact)artifact); | 70 RiverAccess access = new RiverAccess((D4EArtifact)artifact); |
64 String river = access.getRiverName(); | 71 String river = access.getRiverName(); |
65 | 72 |
66 double radius = scales.getRadius(river, start, end); | 73 double radius = scales.getRadius(river, start, end); |
67 BedDiffYearResult oldData = data[index]; | 74 BedDiffYearResult oldData = data[index]; |
68 double[][] heights = MovingAverage.weighted(oldData.getHeights2Data(), radius); | 75 double[][] heights = MovingAverage.weighted( |
76 oldData.getHeights2Data(), radius); | |
69 this.addMetaData( | 77 this.addMetaData( |
70 Resources.getMsg(context.getMeta(), | 78 Resources.getMsg(context.getMeta(), |
71 "chart.subtitle.radius"), | 79 "chart.subtitle.radius"), |
72 Formatter.getRawFormatter(context).format(radius) + " km"); | 80 Formatter.getRawFormatter(context).format(radius) + " km"); |
73 | 81 |