Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/process/WOutProcessor.java @ 8202:e4606eae8ea5
sed src/**/*.java 's/logger/log/g'
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Fri, 05 Sep 2014 12:58:17 +0200 |
parents | 01d1ed168b24 |
children | 5e38e2924c07 |
comparison
equal
deleted
inserted
replaced
8201:4b8c5a08de04 | 8202:e4606eae8ea5 |
---|---|
31 * | 31 * |
32 * @author <a href="mailto:bjoern.ricks@intevation.de">Björn Ricks</a> | 32 * @author <a href="mailto:bjoern.ricks@intevation.de">Björn Ricks</a> |
33 */ | 33 */ |
34 public class WOutProcessor extends DefaultProcessor { | 34 public class WOutProcessor extends DefaultProcessor { |
35 | 35 |
36 /** Private logger. */ | 36 /** Private log. */ |
37 private static final Logger logger = | 37 private static final Logger log = |
38 Logger.getLogger(WOutProcessor.class); | 38 Logger.getLogger(WOutProcessor.class); |
39 | 39 |
40 public static final String I18N_AXIS_LABEL = | 40 public static final String I18N_AXIS_LABEL = |
41 "chart.longitudinal.section.yaxis.label"; | 41 "chart.longitudinal.section.yaxis.label"; |
42 | 42 |
47 DiagramGenerator generator, | 47 DiagramGenerator generator, |
48 ArtifactAndFacet bundle, | 48 ArtifactAndFacet bundle, |
49 ThemeDocument theme, | 49 ThemeDocument theme, |
50 boolean visible | 50 boolean visible |
51 ) { | 51 ) { |
52 logger.debug("Processing facet: " + bundle.getFacetName()); | 52 log.debug("Processing facet: " + bundle.getFacetName()); |
53 CallContext context = generator.getCallContext(); | 53 CallContext context = generator.getCallContext(); |
54 Object data = bundle.getData(context); | 54 Object data = bundle.getData(context); |
55 | 55 |
56 XYSeries series = new StyledXYSeries(bundle.getFacetDescription(), theme); | 56 XYSeries series = new StyledXYSeries(bundle.getFacetDescription(), theme); |
57 | 57 |
101 bundle.getFacetName().equals(FacetTypes.DISCHARGE_LONGITUDINAL_W) || | 101 bundle.getFacetName().equals(FacetTypes.DISCHARGE_LONGITUDINAL_W) || |
102 bundle.getFacetName().equals(FacetTypes.STATIC_WQKMS_W) || | 102 bundle.getFacetName().equals(FacetTypes.STATIC_WQKMS_W) || |
103 bundle.getFacetName().equals(FacetTypes.DISCHARGE_LONGITUDINAL_C)) { | 103 bundle.getFacetName().equals(FacetTypes.DISCHARGE_LONGITUDINAL_C)) { |
104 /* Only use W values to check if the diagram should be inverted | 104 /* Only use W values to check if the diagram should be inverted |
105 * see flys/issue1290 for details */ | 105 * see flys/issue1290 for details */ |
106 logger.debug("Check for RTL data: "+ wkms.guessRTLData()); | 106 log.debug("Check for RTL data: "+ wkms.guessRTLData()); |
107 generator.setInverted(wkms.guessRTLData()); | 107 generator.setInverted(wkms.guessRTLData()); |
108 } | 108 } |
109 } | 109 } |
110 | 110 |
111 @Override | 111 @Override |
114 ArtifactAndFacet bundle, | 114 ArtifactAndFacet bundle, |
115 ThemeDocument theme, | 115 ThemeDocument theme, |
116 boolean visible, | 116 boolean visible, |
117 int index) | 117 int index) |
118 { | 118 { |
119 logger.debug("doOut"); | 119 log.debug("doOut"); |
120 | 120 |
121 CallContext context = generator.getCallContext(); | 121 CallContext context = generator.getCallContext(); |
122 | 122 |
123 XYSeries series = new StyledXYSeries(bundle.getFacetDescription(), theme); | 123 XYSeries series = new StyledXYSeries(bundle.getFacetDescription(), theme); |
124 | 124 |