Package org.zkoss.chart.impl
Class PlotEngineImpl
- java.lang.Object
-
- org.zkoss.chart.impl.PlotEngineImpl
-
- All Implemented Interfaces:
PlotEngine
- Direct Known Subclasses:
ArcDiagramPlotImpl,AreaPlotImpl,AreaRangePlotImpl,AreaSplinePlotImpl,AreaSplineRangePlotImpl,BarPlotImpl,BoxPlotImpl,BubblePlotImpl,BulletPlotImpl,ColumnPlotImpl,ColumnPyramidPlotImpl,ColumnRangePlotImpl,DependencyWheelPlotImpl,DumbbellPlotImpl,ErrorBarPlotImpl,FunnelPlotImpl,GaugePlotImpl,HeatmapPlotImpl,LinePlotImpl,LollipopPlotImpl,NetworkGraphPlotImpl,OrganizationPlotImpl,PiePlotImpl,PolarPlotImpl,PolygonPlotImpl,PyramidPlotImpl,SankeyPlotImpl,Scatter3DPlotImpl,ScatterPlotImpl,SplinePlotImpl,StreamGraphPlotImpl,TreegraphPlotImpl,TreemapPlotImpl,VariwidePlotImpl,WaterfallPlotImpl,WindBarbPlotImpl,WordCloudPlotImpl
public abstract class PlotEngineImpl extends Object implements PlotEngine
A skeleton implementation of chart model.- Author:
- jumperchen
-
-
Constructor Summary
Constructors Constructor Description PlotEngineImpl(PlotData plotData)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PlotDatadrawBoxPlotModel(BoxPlotModel model)Draws the chart with boxplot modelprotected PlotDatadrawCategoryModel(CategoryModel model)Draws the chart with category modelprotected PlotDatadrawDialModel(DialModel model)Draws the chart with dial modelprotected PlotDatadrawFromToModel(FromToModel model)Draws the chart with (from, to) modelprotected PlotDatadrawFromToWeightModel(FromToWeightModel model)Draws the chart with (from, to, weight) modelprotected PlotDatadrawLowHighModel(LowHighModel model)Draws the chart with (low, high) modelprotected PlotDatadrawLowModel(LowModel model)Draws the chart with single value category model for Low Modelprotected PlotDatadrawSingleValueCategoryModel(SingleValueCategoryModel model)Draws the chart with single value category modelprotected PlotDatadrawWordCloudModel(WordCloudModel model)Draws the chart with word cloud modelprotected PlotDatadrawXYModel(XYModel model)Draws the chart with xy modelprotected PlotDatadrawXYZModel(XYZModel model)Draws the chart with xyz modelPlotDatagetPlotData()Returns the plot data object that this chart model will draw.static PlotEnginegetPlotEngine(String type, PlotData plotData)Returns the suitable plot engine implementation.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.zkoss.chart.PlotEngine
drawPlot
-
-
-
-
Field Detail
-
_plotData
protected PlotData _plotData
-
-
Constructor Detail
-
PlotEngineImpl
public PlotEngineImpl(PlotData plotData)
-
-
Method Detail
-
getPlotData
public PlotData getPlotData()
Returns the plot data object that this chart model will draw.
-
getPlotEngine
public static PlotEngine getPlotEngine(String type, PlotData plotData)
Returns the suitable plot engine implementation.- Parameters:
type- Chart typeplotData- Plot data object- Returns:
- plot engine
- Since:
- 3.0.2
-
drawCategoryModel
protected PlotData drawCategoryModel(CategoryModel model)
Draws the chart with category model
-
drawSingleValueCategoryModel
protected PlotData drawSingleValueCategoryModel(SingleValueCategoryModel model)
Draws the chart with single value category model
-
drawLowModel
protected PlotData drawLowModel(LowModel model)
Draws the chart with single value category model for Low Model
-
drawBoxPlotModel
protected PlotData drawBoxPlotModel(BoxPlotModel model)
Draws the chart with boxplot model
-
drawWordCloudModel
protected PlotData drawWordCloudModel(WordCloudModel model)
Draws the chart with word cloud model
-
drawLowHighModel
protected PlotData drawLowHighModel(LowHighModel model)
Draws the chart with (low, high) model
-
drawFromToModel
protected PlotData drawFromToModel(FromToModel model)
Draws the chart with (from, to) model
-
drawFromToWeightModel
protected PlotData drawFromToWeightModel(FromToWeightModel model)
Draws the chart with (from, to, weight) model
-
-