final JMenuItem item = new JCheckBoxMenuItem("Set insert size options ...");
item.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent aEvt) {
InsertSizeSettingsDialog dlg = new InsertSizeSettingsDialog(IGV.getMainFrame(), renderOptions);
dlg.setModal(true);
dlg.setVisible(true);
if (!dlg.isCanceled()) {
renderOptions.setComputeIsizes(dlg.isComputeIsize());
renderOptions.setMinInsertSizePercentile(dlg.getMinPercentile());
renderOptions.setMaxInsertSizePercentile(dlg.getMaxPercentile());
if (renderOptions.isComputeIsizes()) {
dataManager.updatePEStats(renderOptions);
}
renderOptions.setMinInsertSize(dlg.getMinThreshold());
renderOptions.setMaxInsertSize(dlg.getMaxThreshold());
refresh();
}
}
});