Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/process/QOutProcessor.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 | e4606eae8ea5 |
children | 1cc7653ca84f 0a5239a1e46e |
comparison
equal
deleted
inserted
replaced
8855:d7c005e12af0 | 8856:5e38e2924c07 |
---|---|
47 ArtifactAndFacet bundle, | 47 ArtifactAndFacet bundle, |
48 ThemeDocument theme, | 48 ThemeDocument theme, |
49 boolean visible) { | 49 boolean visible) { |
50 CallContext context = generator.getCallContext(); | 50 CallContext context = generator.getCallContext(); |
51 Object data = bundle.getData(context); | 51 Object data = bundle.getData(context); |
52 XYSeries series = new StyledXYSeries(bundle.getFacetDescription(), theme); | 52 XYSeries series = new StyledXYSeries( |
53 bundle.getFacetDescription(), theme); | |
53 String facetName = bundle.getFacetName(); | 54 String facetName = bundle.getFacetName(); |
54 | 55 |
55 if (facetName.equals(FacetTypes.FLOW_VELOCITY_DISCHARGE)) { | 56 if (facetName.equals(FacetTypes.FLOW_VELOCITY_DISCHARGE)) { |
56 if (data instanceof FlowVelocityData) { | 57 if (data instanceof FlowVelocityData) { |
57 FlowVelocityData fData = (FlowVelocityData) data; | 58 FlowVelocityData fData = (FlowVelocityData) data; |
58 StyledSeriesBuilder.addPoints(series, fData.getQPoints(), true); | 59 StyledSeriesBuilder.addPoints(series, fData.getQPoints(), true); |
59 } | 60 } |
60 else { | 61 else { |
61 FastFlowVelocityMeasurementValue fData = | 62 FastFlowVelocityMeasurementValue fData = |
62 (FastFlowVelocityMeasurementValue) data; | 63 (FastFlowVelocityMeasurementValue) data; |
63 double[][] points = new double[][] {{fData.getStation()},{fData.getQ()}}; | 64 double[][] points = new double[][] { |
65 {fData.getStation()},{fData.getQ()}}; | |
64 StyledSeriesBuilder.addPoints(series, points, true); | 66 StyledSeriesBuilder.addPoints(series, points, true); |
65 } | 67 } |
66 } else { | 68 } else { |
67 WQKms wqkms = (WQKms) data; | 69 WQKms wqkms = (WQKms) data; |
68 StyledSeriesBuilder.addStepPointsKmQ(series, wqkms); | 70 StyledSeriesBuilder.addStepPointsKmQ(series, wqkms); |
80 int index) | 82 int index) |
81 { | 83 { |
82 CallContext context = generator.getCallContext(); | 84 CallContext context = generator.getCallContext(); |
83 WQKms wqkms = (WQKms) bundle.getData(context); | 85 WQKms wqkms = (WQKms) bundle.getData(context); |
84 | 86 |
85 XYSeries series = new StyledXYSeries(bundle.getFacetDescription(), theme); | 87 XYSeries series = new StyledXYSeries( |
88 bundle.getFacetDescription(), theme); | |
86 | 89 |
87 StyledSeriesBuilder.addStepPointsKmQ(series, wqkms); | 90 StyledSeriesBuilder.addStepPointsKmQ(series, wqkms); |
88 | 91 |
89 generator.addAxisSeries(series, index, visible); | 92 generator.addAxisSeries(series, index, visible); |
90 | 93 |