首先看一下示例中类之间的关系:
1.ChartDemo这个类是整个应用程序的入口,运行之后的效果显示一个list.
2.IDemoChart接口,这个接口定义了三个方法,
getName()返回值是listitem上显示的标题;
getDesc()返回值是listitem上显示的描述内容.
excute(context)返回值是一个Intent,当点击listitem后跳转到此Intent.
3.AbstractDemoChart类是一个抽象类,实现接口IDemoChart接口,这个类中封装了构建DataSet和renderer的方法,目的快速构建我们的dataset和renderer.这个类具体提供了哪些方法呢?见下图.至于为什么要进行这样的封装看完4中ChartFactory.get***Intent()方法的参数类型后您就明白了.
AbstractChartDemo.java:
4. 其他的以*Chat结尾的类大都继承自AbstractDemoChart这个类实现了接口IDemoChart.我们可以重点看一下execute(context)方法,分析之后发现这个方法中构建Intent的步骤大同小异,第一步构建dataset,第二步构建renderer,第三步调用ChartFactory.get***Intent()方法或ChartFactory.get***View()方法,二者的区别在于一个返回Intent,这个intent可以启动一个特定的activity,另一个返回GraphicalView,对这个GraphicalView可以灵活设置也可以仅作为一部分显示在任何activity上.对于ChartFactory.get***Intent()上的参数activityTitle是指设置显示在activity上的标题.
条形图
|
staticandroid.content.Intent
|
getBarChartIntent(android.content.Contextcontext,XYMultipleSeriesDatasetdataset,XYMultipleSeriesRendererrenderer,BarChart.Typetype)
|
条形图
|
staticandroid.content.Intent
|
getBarChartIntent(android.content.Contextcontext,XYMultipleSeriesDatasetdataset,XYMultipleSeriesRendererrenderer,BarChart.Typetype,
java.lang.StringactivityTitle)
|
条形图
|
staticGraphicalView
|
getBarChartView(android.content.Contextcontext,XYMultipleSeriesDatasetdataset,XYMultipleSeriesRendererrenderer,BarChart.Typetype)
|
气泡图
|
staticandroid.content.Intent
|
getBubbleChartIntent(android.content.Contextcontext,XYMultipleSeriesDatasetdataset,XYMultipleSeriesRendererrenderer)
|
气泡图
|
staticandroid.content.Intent
|
getBubbleChartIntent(android.content.Contextcontext,XYMultipleSeriesDatasetdataset,XYMultipleSeriesRendererrenderer,
java.lang.StringactivityTitle)
|
气泡图
|
staticGraphicalView
|
getBubbleChartView(android.content.Contextcontext,XYMultipleSeriesDatasetdataset,XYMultipleSeriesRendererrenderer)
|
组合图
|
staticandroid.content.Intent
|
getCombinedXYChartIntent(android.content.Contextcontext,XYMultipleSeriesDatasetdataset,XYMultipleSeriesRendererrenderer,
java.lang.String[]types, java.lang.StringactivityTitle)
|
组合图
|
staticGraphicalView
|
getCombinedXYChartView(android.content.Contextcontext,XYMultipleSeriesDatasetdataset,XYMultipleSeriesRendererrenderer,
java.lang.String[]types)
|
立方折线图
|
staticGraphicalView
|
getCubeLineChartView(android.content.Contextcontext,XYMultipleSeriesDatasetdataset,XYMultipleSeriesRendererrenderer,
floatsmoothness)
|
立方折线图
|
staticandroid.content.Intent
|
getCubicLineChartIntent(android.content.Contextcontext,XYMultipleSeriesDatasetdataset,XYMultipleSeriesRendererrenderer,
floatsmoothness)
|
立方折线图
|
staticandroid.content.Intent
|
getCubicLineChartIntent(android.content.Contextcontext,XYMultipleSeriesDatasetdataset,XYMultipleSeriesRendererrenderer,
floatsmoothness, java.lang.StringactivityTitle)
|
拨号盘
|
staticandroid.content.Intent
|
getDialChartIntent(android.content.Contextcontext,CategorySeriesdataset,DialRendererrenderer,
java.lang.StringactivityTitle)
|
拨号盘
|
staticGraphicalView
|
getDialChartView(android.content.Contextcontext,CategorySeriesdataset,DialRendererrenderer)
|
圆环图
|
staticandroid.content.Intent
|
getDoughnutChartIntent(android.content.Contextcontext,MultipleCategorySeriesdataset,DefaultRendererrenderer,
java.lang.StringactivityTitle)
|
圆环图
|
staticGraphicalView
|
getDoughnutChartView(android.content.Contextcontext,MultipleCategorySeriesdataset,DefaultRendererrenderer)
|
圆环图
|
staticandroid.content.Intent
|
getLineChartIntent(android.content.Contextcontext,XYMultipleSeriesDatasetdataset,XYMultipleSeriesRendererrenderer)
|
折线图
|
staticandroid.content.Intent
|
getLineChartIntent(android.content.Contextcontext,XYMultipleSeriesDatasetdataset,XYMultipleSeriesRendererrenderer,
java.lang.StringactivityTitle)
|
折线图
|
staticGraphicalView
|
getLineChartView(android.content.Contextcontext,XYMultipleSeriesDatasetdataset,XYMultipleSeriesRendererrenderer)
|
饼图
|
staticandroid.content.Intent
|
getPieChartIntent(android.content.Contextcontext,CategorySeriesdataset,DefaultRendererrenderer,
java.lang.StringactivityTitle)
|
饼图
|
staticGraphicalView
|
getPieChartView(android.content.Contextcontext,CategorySeriesdataset,DefaultRendererrenderer)
|
范围条形图
|
staticandroid.content.Intent
|
getRangeBarChartIntent(android.content.Contextcontext,XYMultipleSeriesDatasetdataset,XYMultipleSeriesRendererrenderer,BarChart.Typetype,
java.lang.StringactivityTitle)
|
范围条形图
|
staticGraphicalView
|
getRangeBarChartView(android.content.Contextcontext,XYMultipleSeriesDatasetdataset,XYMultipleSeriesRendererrenderer,BarChart.Typetype)
|
散点图
|
staticandroid.content.Intent
|
getScatterChartIntent(android.content.Contextcontext,XYMultipleSeriesDatasetdataset,XYMultipleSeriesRendererrenderer)
|
散点图
|
staticandroid.content.Intent
|
getScatterChartIntent(android.content.Contextcontext,XYMultipleSeriesDatasetdataset,XYMultipleSeriesRendererrenderer,
java.lang.StringactivityTitle)
|
散点图
|
staticGraphicalView
|
getScatterChartView(android.content.Contextcontext,XYMultipleSeriesDatasetdataset,XYMultipleSeriesRendererrenderer)
|
时间图
|
staticandroid.content.Intent
|
getTimeChartIntent(android.content.Contextcontext,XYMultipleSeriesDatasetdataset,XYMultipleSeriesRendererrenderer,
java.lang.Stringformat)
|
时间图
|
staticandroid.content.Intent
|
getTimeChartIntent(android.content.Contextcontext,XYMultipleSeriesDatasetdataset,XYMultipleSeriesRendererrenderer,
java.lang.Stringformat, java.lang.StringactivityTitle)
|
时间图
|
staticGraphicalView
|
getTimeChartView(android.content.Contextcontext,XYMultipleSeriesDatasetdataset,XYMultipleSeriesRendererrenderer,
java.lang.Stringformat)
|
安卓图表引擎AChartEngine(一) -简介
http://blog.csdn.net/lk_blog/article/details/7645509
安卓图表引擎AChartEngine(二) -示例源码概述和分析
http://blog.csdn.net/lk_blog/article/details/7642751
安卓图表引擎AChartEngine(三) -示例源码折线图、饼图和柱状图
http://blog.csdn.net/lk_blog/article/details/7645668
安卓图表引擎AChartEngine(四) -源码示例嵌入Acitivity中的折线图
http://blog.csdn.net/lk_blog/article/details/7645665
安卓图表引擎AChartEngine(五) -Render和Dataset参数介绍
http://blog.csdn.net/lk_blog/article/details/7645661
安卓图表引擎AChartEngine(六) -框架源码结构图
http://blog.csdn.net/lk_blog/article/details/7645671
分享到:
相关推荐
安卓图表引擎AChartEngine(六)-框架源码结构图.pdf
AChartEngine 是一个安卓系统上制作图表的框架,使用简单,功能强大,目前它支持如下的图表类型:line chart (折线图),area chart (面积图;分区图,对比图),scatter chart ( 散点图),time chart (时间图;进度表),bar...
android图表绘制工具,功能非常强大,几乎涵盖了所有的图表种类。 这是目前最新的版本:1.1.0 包含了3个文件: achartengine-1.1.0.jar, achartengine-1.1.0-demo-source.zip, achartengine-1.1.0-javadocs.zip ...
安卓图表框架achartengine-1.0.0 支持以下类型的图表: • line chart (折线图) • area chart (面积图;分区图,对比图) • scatter chart ( 散点图) • time chart (时间图;进度表) • bar chart (条形图;柱状图)...
资源里包括Android图表引擎achartengine 的jar包、示例代码及API文档,各种二维三维图表开发利器
achartengine表格源码,源码中的注释大部分都被我详细中文翻译过,方便大家阅读
AChartEngine 是一个安卓系统上制作图表的框架 目前为止AchartEngine最新版是1.1.0版本。
achartengine1.0.0到1.2.0jar包
NULL 博文链接:https://iaiai.iteye.com/blog/1783716
achartengine-1.0.0-javadocs 画图API Android文档
achartengine-1.1.0-javadocs.zip 开发文档
Android 使用AChartEngine画折线图统计图
achartengine 1.2.0版本的下载,可以实现饼图,折线图,柱状图等
AChartEngine是为android应用而设计的绘图工具库。目前该库的最新稳定版本是0.7,支持绘制以下类型的图表: ?line chart ?area chart ?scatter chart ?time chart ?bar chart ?pie chart ?bubble chart ?doughnut ...
achartengine-1.1.0.jar 用于在android上绘制曲线图和趋势图 它功能强大,支持散点图、折线图、饼图、气泡图、柱状图、短棒图、仪表图等多种图表
achartengine-0[1].7.0-demo-source.zip android开发股表图表,统计图表的开源引擎,demo及jar包
Achartengine1.0.0jar包源码
AChartEngine是为Android应用而设计的绘图工具库。可用于绘制多种图表,目前该绘图工具库的最新最新版本的是achartengine-1.1.0.jar。ChartEngine支持的图表类型:折线图、区域图、散点图、时间图、柱状图、饼状图、...
achartengine-1.10 的源码 找了好多次 在csdn上下载了两次假冒的!醉了。嫌弃贵的 可以私戳我。