网站建设业务员,怎样做才能让网站有排名,网站管理助手 1004,wordpress使用密码错误图表中各个参数的应用#xff08; AChartEngine XMultipleSeriesRenderer 运行demo可以发现#xff0c;它的所有chart都是可以移动#xff0c;背景色为黑。。。。不过我们有时候会希望chart不动或者改变背景色等一些样式。 这节就介绍一些demo中没有使用的但有很常见的一些关… 图表中各个参数的应用 AChartEngine XMultipleSeriesRenderer 运行demo可以发现它的所有chart都是可以移动背景色为黑。。。。不过我们有时候会希望chart不动或者改变背景色等一些样式。 这节就介绍一些demo中没有使用的但有很常见的一些关于设置renderer的方法 我也是一边看帮助文件一边在学习下面的内容会不断更新方便自己学习和查阅 1、//设置图形不可移动 org.achartengine.renderer.XYMultipleSeriesRenderer setPanEnabled public void (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.DefaultRenderersetPanEnabled public void (boolean enabled) Sets the enabled state of the pan. Parameters: enabled - pan enabled 2、//设置空白区的颜色默认为黑色 org.achartengine.renderer.XYMultipleSeriesRenderer setMarginsColor public void (int color) Sets the color of the margins. Parameters: color - the margins color3、//是否采用背景色false下默认chart背景色为黑色默认falseorg.achartengine.renderer.DefaultRenderer setApplyBackgroundColor public void (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 (int color) Sets the background color. Parameters: color - the background color 转载于:https://blog.51cto.com/3387980/997769