Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/exports/process/MiscDischargeProcessor.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 | 9f9857f6c464 |
children | 1cc7653ca84f 0a5239a1e46e |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/process/MiscDischargeProcessor.java Thu Jan 18 20:10:59 2018 +0100 +++ b/artifacts/src/main/java/org/dive4elements/river/exports/process/MiscDischargeProcessor.java Thu Jan 18 20:12:01 2018 +0100 @@ -143,7 +143,8 @@ boolean visible, int axisIndex ) { - XYSeries series = new StyledXYSeries(bundle.getFacetDescription(), theme); + XYSeries series = new StyledXYSeries( + bundle.getFacetDescription(), theme); Object wq = bundle.getData(generator.getCallContext()); if (wq instanceof double[][]) { double [][] data = (double [][]) wq; @@ -177,14 +178,16 @@ series.add(wqkms.getQ(i), wqkms.getW(i)); generator.addAxisSeries(series, axidx, visible); if(visible && theme.parseShowPointLabel()) { - List<XYTextAnnotation> textAnnos = new ArrayList<XYTextAnnotation>(); + List<XYTextAnnotation> textAnnos = + new ArrayList<XYTextAnnotation>(); XYTextAnnotation anno = new CollisionFreeXYTextAnnotation( title, wqkms.getQ(i), // TODO add a percentage to the extend of W axis wqkms.getW(i)); textAnnos.add(anno); - RiverAnnotation flysAnno = new RiverAnnotation(null, null, null, theme); + RiverAnnotation flysAnno = + new RiverAnnotation(null, null, null, theme); flysAnno.setTextAnnotations(textAnnos); generator.addAnnotations(flysAnno); } @@ -235,7 +238,8 @@ // TODO subtract gauge null point if at gauge. String title = bundle.getFacetDescription(); - List<StickyAxisAnnotation> yMarks = new ArrayList<StickyAxisAnnotation>(); + List<StickyAxisAnnotation> yMarks = + new ArrayList<StickyAxisAnnotation>(); for (double yPos: data[1]) { yMarks.add(new StickyAxisAnnotation( @@ -275,7 +279,8 @@ ) { double value = Double.valueOf( bundle.getData(generator.getCallContext()).toString()); - generator.addDomainMarker(new StyledValueMarker(value, theme), visible); + generator.addDomainMarker( + new StyledValueMarker(value, theme), visible); } protected void doHistoricalDischargeOutW( @@ -286,7 +291,8 @@ ) { double value = Double.valueOf( bundle.getData(generator.getCallContext()).toString()); - generator.addValueMarker(new StyledValueMarker(value, theme), visible); + generator.addValueMarker( + new StyledValueMarker(value, theme), visible); } private void doPointsOut( @@ -296,7 +302,8 @@ ThemeDocument theme, boolean visible ) { - XYSeries series = new StyledXYSeries(bundle.getFacetDescription(), theme); + XYSeries series = new StyledXYSeries( + bundle.getFacetDescription(), theme); StyledSeriesBuilder.addPoints(series, data, true); generator.addAxisSeries(series, axisName, visible); } @@ -322,14 +329,16 @@ series.add(wqkms.getQ(i), wqkms.getW(i)); generator.addAxisSeries(series, axisName, visible); if(visible && theme.parseShowPointLabel()) { - List<XYTextAnnotation> textAnnos = new ArrayList<XYTextAnnotation>(); + List<XYTextAnnotation> textAnnos = + new ArrayList<XYTextAnnotation>(); XYTextAnnotation anno = new CollisionFreeXYTextAnnotation( title, wqkms.getQ(i), // TODO add a percentage to the extend of W axis wqkms.getW(i)); textAnnos.add(anno); - RiverAnnotation flysAnno = new RiverAnnotation(null, null, null, theme); + RiverAnnotation flysAnno = new RiverAnnotation( + null, null, null, theme); flysAnno.setTextAnnotations(textAnnos); generator.addAnnotations(flysAnno); } @@ -365,7 +374,8 @@ @Override public String getAxisLabel(DiagramGenerator generator) { CallMeta meta = generator.getCallContext().getMeta(); - RiverAccess access = new RiverAccess((D4EArtifact)generator.getMaster()); + RiverAccess access = new RiverAccess((D4EArtifact)generator + .getMaster()); String unit = access.getRiver().getWstUnit().getName(); return Resources.getMsg(