Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/ChartGenerator.java @ 9726:0a5239a1e46e 3.2.x
Upgrade to Log4j 2
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 02 Mar 2022 10:26:50 +0100 |
parents | 5e38e2924c07 |
children |
comparison
equal
deleted
inserted
replaced
9725:da398790fa32 | 9726:0a5239a1e46e |
---|---|
50 import java.util.SortedMap; | 50 import java.util.SortedMap; |
51 import java.util.TreeMap; | 51 import java.util.TreeMap; |
52 | 52 |
53 import javax.xml.xpath.XPathConstants; | 53 import javax.xml.xpath.XPathConstants; |
54 | 54 |
55 import org.apache.log4j.Logger; | 55 import org.apache.logging.log4j.Logger; |
56 import org.apache.logging.log4j.LogManager; | |
56 import org.jfree.chart.JFreeChart; | 57 import org.jfree.chart.JFreeChart; |
57 import org.jfree.chart.LegendItem; | 58 import org.jfree.chart.LegendItem; |
58 import org.jfree.chart.LegendItemCollection; | 59 import org.jfree.chart.LegendItemCollection; |
59 import org.jfree.chart.axis.NumberAxis; | 60 import org.jfree.chart.axis.NumberAxis; |
60 import org.jfree.chart.plot.XYPlot; | 61 import org.jfree.chart.plot.XYPlot; |
80 * | 81 * |
81 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | 82 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> |
82 */ | 83 */ |
83 public abstract class ChartGenerator implements OutGenerator { | 84 public abstract class ChartGenerator implements OutGenerator { |
84 | 85 |
85 private static Logger log = Logger.getLogger(ChartGenerator.class); | 86 private static Logger log = LogManager.getLogger(ChartGenerator.class); |
86 | 87 |
87 public static final int DEFAULT_CHART_WIDTH = 600; | 88 public static final int DEFAULT_CHART_WIDTH = 600; |
88 public static final int DEFAULT_CHART_HEIGHT = 400; | 89 public static final int DEFAULT_CHART_HEIGHT = 400; |
89 public static final String DEFAULT_CHART_FORMAT = "png"; | 90 public static final String DEFAULT_CHART_FORMAT = "png"; |
90 public static final Color DEFAULT_GRID_COLOR = Color.GRAY; | 91 public static final Color DEFAULT_GRID_COLOR = Color.GRAY; |