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: gernotbelger@9360: import java.awt.Shape; gernotbelger@9360: teichmann@6905: import org.dive4elements.river.themes.ThemeDocument; ingo@2321: ingo@2321: import org.jfree.data.time.TimeSeries; ingo@2321: ingo@2321: /** ingo@2321: * @author Ingo Weinzierl ingo@2321: */ ingo@2321: public class StyledTimeSeries extends TimeSeries implements StyledSeries { ingo@2321: gernotbelger@9360: private Style style; ingo@2321: teichmann@6905: public StyledTimeSeries(String key, ThemeDocument theme) { ingo@2321: super(key); ingo@2321: setStyle(new XYStyle(theme)); ingo@2321: } gernotbelger@9360: gernotbelger@9360: public StyledTimeSeries(String key, ThemeDocument theme, Shape shape) { gernotbelger@9360: super(key); gernotbelger@9360: setStyle(new XYStyle(theme, shape)); gernotbelger@9360: } ingo@2321: ingo@2321: @Override ingo@2321: public void setStyle(Style style) { ingo@2321: this.style = style; ingo@2321: } ingo@2321: ingo@2321: @Override ingo@2321: public Style getStyle() { ingo@2321: return style; ingo@2321: } gernotbelger@9360: }