teichmann@5863: /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde teichmann@5863: * Software engineering by Intevation GmbH teichmann@5863: * teichmann@5994: * This file is Free Software under the GNU AGPL (>=v3) teichmann@5863: * and comes with ABSOLUTELY NO WARRANTY! Check out the teichmann@5994: * documentation coming with Dive4Elements River for details. teichmann@5863: */ teichmann@5863: teichmann@5831: package org.dive4elements.river.jfree; ingo@2321: ingo@2321: import org.apache.log4j.Logger; teichmann@6905: import org.dive4elements.river.themes.ThemeDocument; ingo@2321: ingo@2321: import org.jfree.data.time.TimeSeries; ingo@2321: ingo@2321: ingo@2321: /** ingo@2321: * @author Ingo Weinzierl ingo@2321: */ ingo@2321: public class StyledTimeSeries extends TimeSeries implements StyledSeries { ingo@2321: teichmann@8202: private static final Logger log = ingo@2321: Logger.getLogger(StyledTimeSeries.class); ingo@2321: ingo@2321: ingo@2321: protected Style style; ingo@2321: ingo@2321: teichmann@6905: public StyledTimeSeries(String key, ThemeDocument theme) { ingo@2321: super(key); ingo@2321: setStyle(new XYStyle(theme)); ingo@2321: } ingo@2321: ingo@2321: ingo@2321: @Override ingo@2321: public void setStyle(Style style) { ingo@2321: this.style = style; ingo@2321: } ingo@2321: ingo@2321: ingo@2321: @Override ingo@2321: public Style getStyle() { ingo@2321: return style; ingo@2321: } ingo@2321: } ingo@2321: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :