author | František Kučera <franta-hg@frantovo.cz> |
Sat Feb 28 21:31:02 2009 +0100 (2009-02-28) | |
changeset 1 | 639991d0808a |
permissions | -rw-r--r-- |
franta-hg@1 | 1 |
/* |
franta-hg@1 | 2 |
* Created on 13.04.2003 |
franta-hg@1 | 3 |
* |
franta-hg@1 | 4 |
* To change the template for this generated file go to |
franta-hg@1 | 5 |
* Window>Preferences>Java>Code Generation>Code and Comments |
franta-hg@1 | 6 |
*/ |
franta-hg@1 | 7 |
package de.laures.cewolf.taglib.tags; |
franta-hg@1 | 8 |
|
franta-hg@1 | 9 |
import de.laures.cewolf.taglib.AbstractChartDefinition; |
franta-hg@1 | 10 |
import de.laures.cewolf.taglib.AxisTypes; |
franta-hg@1 | 11 |
import de.laures.cewolf.taglib.OverlaidChartDefinition; |
franta-hg@1 | 12 |
import de.laures.cewolf.taglib.PlotContainer; |
franta-hg@1 | 13 |
import de.laures.cewolf.taglib.PlotDefinition; |
franta-hg@1 | 14 |
|
franta-hg@1 | 15 |
|
franta-hg@1 | 16 |
/** |
franta-hg@1 | 17 |
* @author guido |
franta-hg@1 | 18 |
* |
franta-hg@1 | 19 |
* To change the template for this generated type comment go to |
franta-hg@1 | 20 |
* Window>Preferences>Java>Code Generation>Code and Comments |
franta-hg@1 | 21 |
*/ |
franta-hg@1 | 22 |
public class OverlaidChartTag extends AbstractChartTag implements PlotContainer { |
franta-hg@1 | 23 |
|
franta-hg@1 | 24 |
protected AbstractChartDefinition createChartDefinition() { |
franta-hg@1 | 25 |
return new OverlaidChartDefinition(); |
franta-hg@1 | 26 |
} |
franta-hg@1 | 27 |
|
franta-hg@1 | 28 |
public void addPlot(PlotDefinition pd){ |
franta-hg@1 | 29 |
((OverlaidChartDefinition)chartDefinition).addPlot(pd); |
franta-hg@1 | 30 |
} |
franta-hg@1 | 31 |
|
franta-hg@1 | 32 |
/** |
franta-hg@1 | 33 |
* Sets the xAxisType. |
franta-hg@1 | 34 |
* @param xAxisType The xAxisType to set |
franta-hg@1 | 35 |
*/ |
franta-hg@1 | 36 |
public void setxaxistype(String xAxisType) { |
franta-hg@1 | 37 |
final int xAxisTypeConst = AxisTypes.typeList.indexOf(xAxisType); |
franta-hg@1 | 38 |
((OverlaidChartDefinition)chartDefinition).setXAxisType(xAxisTypeConst); |
franta-hg@1 | 39 |
} |
franta-hg@1 | 40 |
|
franta-hg@1 | 41 |
/** |
franta-hg@1 | 42 |
* Sets the yAxisType. |
franta-hg@1 | 43 |
* @param yAxisType The yAxisType to set |
franta-hg@1 | 44 |
*/ |
franta-hg@1 | 45 |
public void setyaxistype(String yAxisType) { |
franta-hg@1 | 46 |
final int yAxisTypeConst = AxisTypes.typeList.indexOf(yAxisType); |
franta-hg@1 | 47 |
((OverlaidChartDefinition)chartDefinition).setYAxisType(yAxisTypeConst); |
franta-hg@1 | 48 |
} |
franta-hg@1 | 49 |
|
franta-hg@1 | 50 |
} |