franta-hg@1: /* franta-hg@1: * Created on 13.04.2003 franta-hg@1: * franta-hg@1: * To change the template for this generated file go to franta-hg@1: * Window>Preferences>Java>Code Generation>Code and Comments franta-hg@1: */ franta-hg@1: package de.laures.cewolf.taglib.tags; franta-hg@1: franta-hg@1: import de.laures.cewolf.taglib.AbstractChartDefinition; franta-hg@1: import de.laures.cewolf.taglib.AxisTypes; franta-hg@1: import de.laures.cewolf.taglib.OverlaidChartDefinition; franta-hg@1: import de.laures.cewolf.taglib.PlotContainer; franta-hg@1: import de.laures.cewolf.taglib.PlotDefinition; franta-hg@1: franta-hg@1: franta-hg@1: /** franta-hg@1: * @author guido franta-hg@1: * franta-hg@1: * To change the template for this generated type comment go to franta-hg@1: * Window>Preferences>Java>Code Generation>Code and Comments franta-hg@1: */ franta-hg@1: public class OverlaidChartTag extends AbstractChartTag implements PlotContainer { franta-hg@1: franta-hg@1: protected AbstractChartDefinition createChartDefinition() { franta-hg@1: return new OverlaidChartDefinition(); franta-hg@1: } franta-hg@1: franta-hg@1: public void addPlot(PlotDefinition pd){ franta-hg@1: ((OverlaidChartDefinition)chartDefinition).addPlot(pd); franta-hg@1: } franta-hg@1: franta-hg@1: /** franta-hg@1: * Sets the xAxisType. franta-hg@1: * @param xAxisType The xAxisType to set franta-hg@1: */ franta-hg@1: public void setxaxistype(String xAxisType) { franta-hg@1: final int xAxisTypeConst = AxisTypes.typeList.indexOf(xAxisType); franta-hg@1: ((OverlaidChartDefinition)chartDefinition).setXAxisType(xAxisTypeConst); franta-hg@1: } franta-hg@1: franta-hg@1: /** franta-hg@1: * Sets the yAxisType. franta-hg@1: * @param yAxisType The yAxisType to set franta-hg@1: */ franta-hg@1: public void setyaxistype(String yAxisType) { franta-hg@1: final int yAxisTypeConst = AxisTypes.typeList.indexOf(yAxisType); franta-hg@1: ((OverlaidChartDefinition)chartDefinition).setYAxisType(yAxisTypeConst); franta-hg@1: } franta-hg@1: franta-hg@1: }