KickJava   Java API By Example, From Geeks To Geeks.

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


1 package de.laures.cewolf.taglib.tags;
2
3 import de.laures.cewolf.taglib.AbstractChartDefinition;
4 import de.laures.cewolf.taglib.CombinedChartDefinition;
5 import de.laures.cewolf.taglib.PlotContainer;
6 import de.laures.cewolf.taglib.PlotDefinition;
7
8
9 /**
10  * Chart tag subclass to handle combined charts
11  *
12  * @author guido
13  * @author tbardzil
14  *
15  */

16 public class CombinedChartTag extends AbstractChartTag implements PlotContainer {
17
18     protected AbstractChartDefinition createChartDefinition() {
19         return new CombinedChartDefinition();
20     }
21
22     public void addPlot(PlotDefinition pd){
23         ((CombinedChartDefinition) chartDefinition).addPlot(pd);
24     }
25
26     /**
27      * Setter for property layout [tb]
28      * @param layout
29      */

30     public void setLayout(String JavaDoc layout) {
31         ((CombinedChartDefinition) chartDefinition).setLayout(layout);
32     }
33 }
34
Popular Tags