THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
I've put up a newer, Wicket 1.4 based solution on a gist at github. Provides the same functionality - a component that displays a JFreeChart with tooltips and clickable entities. This solution uses models and thus allows the graph to be redrawn when the model data changes.
Code Block | ||||
---|---|---|---|---|
| ||||
IModel<JFreeChartRenderingBean> chartModel = new AbstractReadOnlyModel<JFreeChartRenderingBean>(){ @Override public JFreeChartRenderingBean getObject() { return new JFreeChartRenderingBean(constructChart(), CHART_WIDTH, CHART_HEIGHT); } }; MappedJFreeChartPanel graphPanel = new MappedJFreeChartPanel("graphPanel", chartModel); add(graphPanel); |
...