comparison flys-artifacts/src/main/java/de/intevation/flys/jfree/StyledXYSeries.java @ 3818:dc18457b1cef

merged flys-artifacts/pre2.7-2012-03-16
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 28 Sep 2012 12:14:59 +0200
parents 991e4a5df323
children 9d2a06c3a134
comparison
equal deleted inserted replaced
2456:60ab1054069d 3818:dc18457b1cef
1 package de.intevation.flys.jfree;
2
3
4 import org.apache.log4j.Logger;
5
6 import org.w3c.dom.Document;
7
8 import org.jfree.data.xy.XYSeries;
9
10
11 /**
12 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
13 */
14 public class StyledXYSeries extends XYSeries implements StyledSeries {
15
16 private static final Logger logger = Logger.getLogger(StyledXYSeries.class);
17
18 protected Style style;
19
20
21 public StyledXYSeries(String key, Document theme) {
22 this(key, true, theme);
23 }
24
25
26 /**
27 * @param sorted whether or not to sort the points. Sorting will move NANs
28 * to one extrema which can cause problems in certain
29 * algorithms.
30 */
31 public StyledXYSeries(String key, boolean sorted, Document theme) {
32 super(key, sorted);
33 setStyle(new XYStyle(theme));
34 }
35
36
37 @Override
38 public void setStyle(Style style) {
39 this.style = style;
40 }
41
42
43 @Override
44 public Style getStyle() {
45 return style;
46 }
47 }
48 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org