Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/jfree/JFreeUtil.java @ 6905:1b35b2ddfc28
Artifacts: Introduce ThemeDocument & make stuff compileable again. THIS BREAKS THE SYSTEM! TODO: Move ThemeUtils into ThemeDocument.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 22 Aug 2013 23:31:38 +0200 |
parents | af13ceeba52a |
children | e4606eae8ea5 |
comparison
equal
deleted
inserted
replaced
6904:d710bd3df387 | 6905:1b35b2ddfc28 |
---|---|
14 import java.util.Random; | 14 import java.util.Random; |
15 | 15 |
16 import org.apache.log4j.Logger; | 16 import org.apache.log4j.Logger; |
17 import org.jfree.chart.entity.ChartEntity; | 17 import org.jfree.chart.entity.ChartEntity; |
18 import org.jfree.chart.entity.EntityCollection; | 18 import org.jfree.chart.entity.EntityCollection; |
19 import org.w3c.dom.Document; | |
20 | 19 |
21 import org.dive4elements.river.artifacts.math.Function; | 20 import org.dive4elements.river.artifacts.math.Function; |
21 import org.dive4elements.river.themes.ThemeDocument; | |
22 | 22 |
23 public class JFreeUtil { | 23 public class JFreeUtil { |
24 | 24 |
25 private static final Logger logger = Logger.getLogger(JFreeUtil.class); | 25 private static final Logger logger = Logger.getLogger(JFreeUtil.class); |
26 | 26 |
105 } | 105 } |
106 | 106 |
107 | 107 |
108 public static StyledXYSeries sampleFunction2D( | 108 public static StyledXYSeries sampleFunction2D( |
109 Function func, | 109 Function func, |
110 Document theme, | 110 ThemeDocument theme, |
111 String seriesKey, | 111 String seriesKey, |
112 int samples, | 112 int samples, |
113 double start, | 113 double start, |
114 double end | 114 double end |
115 ) { | 115 ) { |
125 return series; | 125 return series; |
126 } | 126 } |
127 | 127 |
128 public static StyledXYSeries sampleFunction2DPositive( | 128 public static StyledXYSeries sampleFunction2DPositive( |
129 Function func, | 129 Function func, |
130 Document theme, | 130 ThemeDocument theme, |
131 String seriesKey, | 131 String seriesKey, |
132 int samples, | 132 int samples, |
133 double start, | 133 double start, |
134 double end | 134 double end |
135 ) { | 135 ) { |