achartengine之Demo学习6——demo中没使用的方法
2013-04-09 18:32
369 查看
这节就介绍一些demo中没有使用的但有很常见的一些关于设置renderer的方法
我也是一边看帮助文件一边在学习,下面的内容会不断更新,方便自己学习和查阅
1、//设置图形不可移动
org.achartengine.renderer.XYMultipleSeriesRenderer setPanEnabled public void setPanEnabled(boolean enabledX, boolean enabledY) Sets the enabled state of the pan. Parameters: enabledX - pan enabled on X axis enabledY - pan enabled on Y axis org.achartengine.renderer.DefaultRenderer setPanEnabled public void setPanEnabled(boolean enabled) Sets the enabled state of the pan. Parameters: enabled - pan enabled
2、//设置空白区的颜色,默认为黑色
org.achartengine.renderer.XYMultipleSeriesRenderer setMarginsColor public void setMarginsColor(int color) Sets the color of the margins. Parameters: color - the margins color
3、//是否采用背景色,false下默认chart背景色为黑色,默认false
org.achartengine.renderer.DefaultRenderer setApplyBackgroundColor public void setApplyBackgroundColor(boolean apply) Sets if the background color should be applied. Parameters: apply - the apply flag for the background color
4、//设置chart的背景颜色,不包括空白区
//要注意的是,改变chart背景颜色之前必须要先使用3中的方法 //即 setApplyBackgroundColor(true) org.achartengine.renderer.DefaultRenderer setBackgroundColor public void setBackgroundColor(int color) Sets the background color. Parameters: color - the background color
相关文章推荐
- Android中图表AChartEngine学习使用与例子
- Android中图表AChartEngine学习使用与例子
- APIDemo学习笔记——Android上几种简单的Animation使用方法(一)
- APIDemo学习笔记——Android上几种简单的Animation使用方法(三)——3D Transition
- AChartEngine方法的使用及事件汇总
- APIDemo学习笔记——Android上几种简单的Animation使用方法(二)
- Android中图表AChartEngine学习使用与例子
- APIDemo学习笔记——Android上几种简单的Animation使用方法
- 常量,字段,构造方法 调试 ms 源代码 一个C#二维码图片识别的Demo 近期ASP.NET问题汇总及对应的解决办法 c# chart控件柱状图,改变柱子宽度 使用C#创建Windows服务 C#服务端判断客户端socket是否已断开的方法 线程 线程池 Task .NET 单元测试的利剑——模拟框架Moq
- Android中图表AChartEngine学习使用与例子
- AChartEngine方法的使用及事件汇总
- APIDemo学习笔记——Android上几种简单的Animation使用方法(二)
- Android中图表AChartEngine学习使用与例子
- 启动器和选择器学习-----(6)Extras <wp7 7.1版本中的使用方法>
- JacksonDemo及使用方法
- OC学习篇之---类的初始化方法和点语法的使用
- Flex Actionscript将方法作为方法的参数 使用demo
- 【Java EE 学习 82 上】【MAVEN基本安装和使用方法】
- PowerDesigner最基础的使用方法入门学习
- 接口学习,实现多态的三种方法何时使用