Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/exports/process/FlowVelocityProcessor.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 | 8dbb969091c5 |
children | 28df64078f27 0a5239a1e46e |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/process/FlowVelocityProcessor.java Thu Jan 18 20:10:59 2018 +0100 +++ b/artifacts/src/main/java/org/dive4elements/river/exports/process/FlowVelocityProcessor.java Thu Jan 18 20:12:01 2018 +0100 @@ -43,8 +43,9 @@ boolean visible) { CallContext context = generator.getCallContext(); Map<String, String> metaData = bundle.getFacet().getMetaData(); - StyledXYSeries series = new StyledXYSeries(bundle.getFacetDescription(), - theme); + StyledXYSeries series = new StyledXYSeries( + bundle.getFacetDescription(), + theme); series.putMetaData(metaData, bundle.getArtifact(), context); yAxisLabel = metaData.get("Y"); String facetName = bundle.getFacetName(); @@ -58,11 +59,15 @@ double [][] points; if (facetName.equals(FacetTypes.FLOW_VELOCITY_TOTALCHANNEL) || - facetName.equals(FacetTypes.FLOW_VELOCITY_TOTALCHANNEL_FILTERED)) { + facetName.equals( + FacetTypes.FLOW_VELOCITY_TOTALCHANNEL_FILTERED) + ) { FlowVelocityData fData = (FlowVelocityData) data; points = fData.getTotalChannelPoints(); } else if (facetName.equals(FacetTypes.FLOW_VELOCITY_MAINCHANNEL) || - facetName.equals(FacetTypes.FLOW_VELOCITY_MAINCHANNEL_FILTERED)) { + facetName.equals( + FacetTypes.FLOW_VELOCITY_MAINCHANNEL_FILTERED) + ) { FlowVelocityData fData = (FlowVelocityData) data; points = fData.getMainChannelPoints(); // I hate facets! } else if (facetName.equals(FacetTypes.FLOW_VELOCITY_MEASUREMENT)) { @@ -79,11 +84,11 @@ @Override public boolean canHandle(String facettype) { - return facettype.equals(FacetTypes.FLOW_VELOCITY_MAINCHANNEL_FILTERED) || - facettype.equals(FacetTypes.FLOW_VELOCITY_MAINCHANNEL) || - facettype.equals(FacetTypes.FLOW_VELOCITY_TOTALCHANNEL_FILTERED) || - facettype.equals(FacetTypes.FLOW_VELOCITY_TOTALCHANNEL) || - facettype.equals(FacetTypes.FLOW_VELOCITY_MEASUREMENT); + return facettype.equals(FacetTypes.FLOW_VELOCITY_MAINCHANNEL_FILTERED) + || facettype.equals(FacetTypes.FLOW_VELOCITY_MAINCHANNEL) + || facettype.equals(FacetTypes.FLOW_VELOCITY_TOTALCHANNEL_FILTERED) + || facettype.equals(FacetTypes.FLOW_VELOCITY_TOTALCHANNEL) + || facettype.equals(FacetTypes.FLOW_VELOCITY_MEASUREMENT); } @Override