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/OverlaidChartTag.java Sat Feb 28 21:31:02 2009 +0100
1.3 @@ -0,0 +1,50 @@
1.4 +/*
1.5 + * Created on 13.04.2003
1.6 + *
1.7 + * To change the template for this generated file go to
1.8 + * Window>Preferences>Java>Code Generation>Code and Comments
1.9 + */
1.10 +package de.laures.cewolf.taglib.tags;
1.11 +
1.12 +import de.laures.cewolf.taglib.AbstractChartDefinition;
1.13 +import de.laures.cewolf.taglib.AxisTypes;
1.14 +import de.laures.cewolf.taglib.OverlaidChartDefinition;
1.15 +import de.laures.cewolf.taglib.PlotContainer;
1.16 +import de.laures.cewolf.taglib.PlotDefinition;
1.17 +
1.18 +
1.19 +/**
1.20 + * @author guido
1.21 + *
1.22 + * To change the template for this generated type comment go to
1.23 + * Window>Preferences>Java>Code Generation>Code and Comments
1.24 + */
1.25 +public class OverlaidChartTag extends AbstractChartTag implements PlotContainer {
1.26 +
1.27 + protected AbstractChartDefinition createChartDefinition() {
1.28 + return new OverlaidChartDefinition();
1.29 + }
1.30 +
1.31 + public void addPlot(PlotDefinition pd){
1.32 + ((OverlaidChartDefinition)chartDefinition).addPlot(pd);
1.33 + }
1.34 +
1.35 + /**
1.36 + * Sets the xAxisType.
1.37 + * @param xAxisType The xAxisType to set
1.38 + */
1.39 + public void setxaxistype(String xAxisType) {
1.40 + final int xAxisTypeConst = AxisTypes.typeList.indexOf(xAxisType);
1.41 + ((OverlaidChartDefinition)chartDefinition).setXAxisType(xAxisTypeConst);
1.42 + }
1.43 +
1.44 + /**
1.45 + * Sets the yAxisType.
1.46 + * @param yAxisType The yAxisType to set
1.47 + */
1.48 + public void setyaxistype(String yAxisType) {
1.49 + final int yAxisTypeConst = AxisTypes.typeList.indexOf(yAxisType);
1.50 + ((OverlaidChartDefinition)chartDefinition).setYAxisType(yAxisTypeConst);
1.51 + }
1.52 +
1.53 +}