reactivate AxesSetupDialog in EChartViewer
@@ -32,6 +32,7 @@ import io.github.mzmine.gui.chartbasics.listener.ZoomHistory;
import io.github.mzmine.main.MZmineCore;
import io.github.mzmine.util.SaveImage;
import io.github.mzmine.util.SaveImage.FileType;
+import io.github.mzmine.util.dialogs.AxesSetupDialog;
import io.github.mzmine.util.io.XSSFExcelWriterReader;
import java.awt.image.BufferedImage;
import java.io.File;
@@ -172,14 +173,11 @@ public class EChartViewer extends ChartViewer implements DatasetChangeListener {
yAxis.setAutoRange(true);
});
- // TODO:
- /*
addMenuItem(getContextMenu(), "Set Range on Axis", event -> {
AxesSetupDialog dialog =
- new AxesSetupDialog((Stage) this.getScene().getWindow(), chart.getXYPlot());
+ new AxesSetupDialog(this.getScene().getWindow(), chart.getXYPlot());
dialog.show();
});
- */
addMenuItem(exportMenu, "EPS..", event -> handleSave("EMF Image", "EMF", ".emf", FileType.EMF));
