On 14/10/09 7:51 PM, shan wrote:
> I want to know if there is any possiblity to test chartcomposite with
> Swtbot? Thank you.
By chartcomposite, I presume you mean the one that ships with
JFreeCharts. The answer is yes an no.
The degree of testability will depend on the kind of model that's behind
your chart. If there's no model your best bet would be to screenscrape
the canvas (pixel by pixel) to get values -- painful I know :)
By model I mean something similar to:
years = bar_chart.x_values();
population = bar_chart.y_values();