01: /*
02: * Created on 13.04.2003
03: *
04: * To change the template for this generated file go to
05: * Window>Preferences>Java>Code Generation>Code and Comments
06: */
07: package de.laures.cewolf.taglib.tags;
08:
09: import de.laures.cewolf.taglib.AbstractChartDefinition;
10: import de.laures.cewolf.taglib.AxisTypes;
11: import de.laures.cewolf.taglib.OverlaidChartDefinition;
12: import de.laures.cewolf.taglib.PlotContainer;
13: import de.laures.cewolf.taglib.PlotDefinition;
14:
15: /**
16: * @author guido
17: *
18: * To change the template for this generated type comment go to
19: * Window>Preferences>Java>Code Generation>Code and Comments
20: */
21: public class OverlaidChartTag extends AbstractChartTag implements
22: PlotContainer {
23:
24: protected AbstractChartDefinition createChartDefinition() {
25: return new OverlaidChartDefinition();
26: }
27:
28: public void addPlot(PlotDefinition pd) {
29: ((OverlaidChartDefinition) chartDefinition).addPlot(pd);
30: }
31:
32: /**
33: * Sets the xAxisType.
34: * @param xAxisType The xAxisType to set
35: */
36: public void setxaxistype(String xAxisType) {
37: final int xAxisTypeConst = AxisTypes.typeList
38: .indexOf(xAxisType);
39: ((OverlaidChartDefinition) chartDefinition)
40: .setXAxisType(xAxisTypeConst);
41: }
42:
43: /**
44: * Sets the yAxisType.
45: * @param yAxisType The yAxisType to set
46: */
47: public void setyaxistype(String yAxisType) {
48: final int yAxisTypeConst = AxisTypes.typeList
49: .indexOf(yAxisType);
50: ((OverlaidChartDefinition) chartDefinition)
51: .setYAxisType(yAxisTypeConst);
52: }
53:
54: }
|