KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > de > laures > cewolf > taglib > tags > OverlaidChartTag


1 /*
2  * Created on 13.04.2003
3  *
4  * To change the template for this generated file go to
5  * Window>Preferences>Java>Code Generation>Code and Comments
6  */

7 package de.laures.cewolf.taglib.tags;
8
9 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 /**
17  * @author guido
18  *
19  * To change the template for this generated type comment go to
20  * Window>Preferences>Java>Code Generation>Code and Comments
21  */

22 public class OverlaidChartTag extends AbstractChartTag implements 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 JavaDoc xAxisType) {
37         final int xAxisTypeConst = AxisTypes.typeList.indexOf(xAxisType);
38         ((OverlaidChartDefinition)chartDefinition).setXAxisType(xAxisTypeConst);
39     }
40
41     /**
42      * Sets the yAxisType.
43      * @param yAxisType The yAxisType to set
44      */

45     public void setyaxistype(String JavaDoc yAxisType) {
46         final int yAxisTypeConst = AxisTypes.typeList.indexOf(yAxisType);
47         ((OverlaidChartDefinition)chartDefinition).setYAxisType(yAxisTypeConst);
48     }
49
50 }
51
Popular Tags