The popup menu in the old visualizations is broken
Model visualizations, like in Naive Bayes (Kernel), still use JFreeChart. However, the popup menu (displayed on right click) in these charts is broken. The popup menu displays correctly, but the selected command "gets eaten" and the desired action never happens. This is unfortunate because zooming out just with a touchpad (without a physical right click) is an ordeal.
The issue is in com.rapidminer.gui.plotter.charts.AbstractChartPanel:
public void actionPerformed(ActionEvent event) {This issue seems to be pretty old:
String command = event.getActionCommand();
// many of the zoom methods need a screen location - all we have is
// the zoomPoint, but it might be null. Here we grab the x and y
// coordinates, or use defaults...
double screenX = -1.0;
double screenY = -1.0;
if (this.zoomPoint != null) {
screenX = this.zoomPoint.getX();
screenY = this.zoomPoint.getY();
}
if (super.getChart() == null) { // THIS EVALUATES TO TRUE. THIS STATEMENT WAS ADDED AFTER RAPIDMINER 5.3, WHERE THE MENU STILL WORKED...
return;
}
// ...COMMANDS THAT FOLLOW NEVER GET EXECUTED.
Tagged:
0
Answers