Let users edit series in JFreeChart XY plots

僤鯓⒐⒋嵵緔 提交于 2019-12-11 12:57:01

问题


I'm using JFreeChart to make some graphs in a Java application. I'm trying to figure out how to let the user edit the series paint/stroke. In the Chart Properties window there's a spot for this, but it just says "No editor implemented". Is there a way through the API to provide JFreeChart with an editor for these properties, or do I have to implement one totally separately from the Chart Properties editing window?


回答1:


Support for this is described as "incomplete" in org.jfree.chart.editor. As a start, you can look in DefaultChartEditor to see how the "BackgroundPaint" command is handled. You may be able to use ChartEditorManager to specify a ChartEditorFactory that uses your custom ChartEditor; you may also want to check out a copy of the development branch, cited here, using svn.



来源:https://stackoverflow.com/questions/17393900/let-users-edit-series-in-jfreechart-xy-plots

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!