Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/process/SQRelationProcessor.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 | b5cba2690347 |
children | 422a78fbb4df |
comparison
equal
deleted
inserted
replaced
8201:4b8c5a08de04 | 8202:e4606eae8ea5 |
---|---|
29 public static final String I18N_AXIS_LABEL = | 29 public static final String I18N_AXIS_LABEL = |
30 "chart.sq_relation.yaxis.label"; | 30 "chart.sq_relation.yaxis.label"; |
31 public static final String I18N_AXIS_LABEL_DEFAULT = | 31 public static final String I18N_AXIS_LABEL_DEFAULT = |
32 ""; | 32 ""; |
33 | 33 |
34 private final static Logger logger = | 34 private final static Logger log = |
35 Logger.getLogger(SQRelationProcessor.class); | 35 Logger.getLogger(SQRelationProcessor.class); |
36 | 36 |
37 @Override | 37 @Override |
38 public void doOut( | 38 public void doOut( |
39 DiagramGenerator generator, | 39 DiagramGenerator generator, |
48 Map<String, String> metaData = | 48 Map<String, String> metaData = |
49 bundle.getFacet().getMetaData(bundle.getArtifact(), context); | 49 bundle.getFacet().getMetaData(bundle.getArtifact(), context); |
50 if (data == null) { | 50 if (data == null) { |
51 // Check has been here before so we keep it but | 51 // Check has been here before so we keep it but |
52 // this should never happen. | 52 // this should never happen. |
53 logger.error("Data is null for facet: " + facetName); | 53 log.error("Data is null for facet: " + facetName); |
54 return; | 54 return; |
55 } | 55 } |
56 | 56 |
57 if (FacetTypes.IS.SQ_CURVE(facetName)) { | 57 if (FacetTypes.IS.SQ_CURVE(facetName)) { |
58 SQFunction func = (SQFunction) data; | 58 SQFunction func = (SQFunction) data; |
77 if (s > 0d && q > 0d) { | 77 if (s > 0d && q > 0d) { |
78 series.add(q, s, false); | 78 series.add(q, s, false); |
79 } | 79 } |
80 } | 80 } |
81 } else { | 81 } else { |
82 logger.error("Could not handle: " + facetName); | 82 log.error("Could not handle: " + facetName); |
83 return; | 83 return; |
84 } | 84 } |
85 series.putMetaData(metaData, bundle.getArtifact(), context); | 85 series.putMetaData(metaData, bundle.getArtifact(), context); |
86 | 86 |
87 if (logger.isDebugEnabled()) { | 87 if (log.isDebugEnabled()) { |
88 logger.debug("Series '" + desc + "' has " | 88 log.debug("Series '" + desc + "' has " |
89 + series.getItemCount() + " items."); | 89 + series.getItemCount() + " items."); |
90 | 90 |
91 logger.debug(" -> min x = " + series.getMinX()); | 91 log.debug(" -> min x = " + series.getMinX()); |
92 logger.debug(" -> max x = " + series.getMaxX()); | 92 log.debug(" -> max x = " + series.getMaxX()); |
93 logger.debug(" -> min y = " + series.getMinY()); | 93 log.debug(" -> min y = " + series.getMinY()); |
94 logger.debug(" -> max y = " + series.getMaxY()); | 94 log.debug(" -> max y = " + series.getMaxY()); |
95 } | 95 } |
96 | 96 |
97 generator.addAxisSeries(series, axisName, visible); | 97 generator.addAxisSeries(series, axisName, visible); |
98 } | 98 } |
99 | 99 |