java/cewolf-1.0/src/main/java/de/laures/cewolf/taglib/tags/CombinedChartTag.java
changeset 1 639991d0808a
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/java/cewolf-1.0/src/main/java/de/laures/cewolf/taglib/tags/CombinedChartTag.java	Sat Feb 28 21:31:02 2009 +0100
     1.3 @@ -0,0 +1,33 @@
     1.4 +package de.laures.cewolf.taglib.tags;
     1.5 +
     1.6 +import de.laures.cewolf.taglib.AbstractChartDefinition;
     1.7 +import de.laures.cewolf.taglib.CombinedChartDefinition;
     1.8 +import de.laures.cewolf.taglib.PlotContainer;
     1.9 +import de.laures.cewolf.taglib.PlotDefinition;
    1.10 +
    1.11 +
    1.12 +/**
    1.13 + * Chart tag subclass to handle combined charts
    1.14 + *
    1.15 + * @author guido
    1.16 + * @author tbardzil
    1.17 + *
    1.18 + */
    1.19 +public class CombinedChartTag extends AbstractChartTag implements PlotContainer {
    1.20 +
    1.21 +    protected AbstractChartDefinition createChartDefinition() {
    1.22 +        return new CombinedChartDefinition();
    1.23 +    }
    1.24 +
    1.25 +	public void addPlot(PlotDefinition pd){
    1.26 +		((CombinedChartDefinition) chartDefinition).addPlot(pd);
    1.27 +	}
    1.28 +
    1.29 +    /**
    1.30 +     * Setter for property layout [tb]
    1.31 +     * @param layout
    1.32 +     */
    1.33 +    public void setLayout(String layout) {
    1.34 +        ((CombinedChartDefinition) chartDefinition).setLayout(layout);
    1.35 +    }
    1.36 +}