});
JFreeChart chart = createChart(dataset);
plot = createPlot(chart);
ActionManager actionManager = Application.getInstance().getContext().getActionManager();
for (ProfileMode mode : ProfileMode.values())
actionManager.register("show-" + mode.name().toLowerCase(), new ToggleProfileModeAction(profileModeModel, mode));
// since JFreeChart is not very nice to extensions - constructors calling protected methods...
LazyToolTipChartPanel.profileModeModel = profileModeModel;
chartPanel = new LazyToolTipChartPanel(chart, false, true, true, true, true);
chartPanel.addChartMouseListener(new ChartMouseListener() {
public void chartMouseClicked(ChartMouseEvent e) {