首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >AndroidPlot和RectRegion

AndroidPlot和RectRegion
EN

Stack Overflow用户
提问于 2012-08-11 14:51:20
回答 1查看 248关注 0票数 0

我正在使用Androidplot (v0.5.0),我希望我绘制的系列的片段有不同的颜色。我想我需要使用RectRegion,但是这个区域从来没有出现过。

代码语言:javascript
复制
XYSeries series = new SimpleXYSeries(timestamps, item.getValues(), "");  
LineAndPointFormatter seriesFmt = new LineAndPointFormatter(
        Color.rgb(0, 200, 0),
        Color.rgb(0, 100, 0),
        Color.rgb(150, 190, 150));

XYRegionFormatter regionFmter = new XYRegionFormatter(Color.RED);
RectRegion region = new RectRegion(0, 10, 0, 10);
seriesFmt.addRegion(region, regionFmter);

我再也找不到这方面的文档了,但我可以从我试图实现的旧教程中找到旧图像。http://androidplot.com/w/images/thumb/1/12/RectRegions_final.jpg/398px-RectRegions_final.jpg

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-08-11 15:03:23

这里有一个链接,指向生成您发布的图形的完整源代码-希望它能提供您正在寻找的答案:)

https://androidplot.jira.com/source/browse/ANDROIDPLOT/trunk/Examples/DemoApp/src/com/androidplot/demos/XYRegionExampleActivity.java?hb=true

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/11912666

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档