Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/exports/process/FlowVelocityProcessor.java @ 8860:28df64078f27
Merge with 0862ea5d66baf60e7eee496d130a35157cc9ec12
author | gernotbelger |
---|---|
date | Fri, 19 Jan 2018 11:23:42 +0100 |
parents | 8c64617a7991 5e38e2924c07 |
children | 1cc7653ca84f |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/process/FlowVelocityProcessor.java Thu Jan 18 18:34:41 2018 +0100 +++ b/artifacts/src/main/java/org/dive4elements/river/exports/process/FlowVelocityProcessor.java Fri Jan 19 11:23:42 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