ij.gui.PlotWindow Java Examples
The following examples show how to use
ij.gui.PlotWindow.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: InteractivePlotter.java From Scripts with GNU General Public License v3.0 | 6 votes |
private ArrayList<PlotInstance> getPlots() { final ArrayList<PlotInstance> plots = new ArrayList<>(); final int[] ids = WindowManager.getIDList(); if (ids != null) { for (final int id : ids) { final ImagePlus pImp = WindowManager.getImage(id); if (pImp == null) continue; final ImageWindow win = pImp.getWindow(); if (win == null) continue; if (win instanceof PlotWindow) { if (win.equals(pw)) continue; plots.add(new PlotInstance((PlotWindow) win)); } } } return plots; }
Example #2
Source File: InteractivePlotter.java From Scripts with GNU General Public License v3.0 | 6 votes |
/** * Displays the specified plot and returns its PlotWindow. A WindowListener * is used to monitor it is closure. */ private PlotWindow showPlot() { if (plot == null) return null; pwClosed = false; pw = plot.show(); pw.addWindowListener(new WindowAdapter() { @Override public void windowClosed(final WindowEvent e) { if (e.getWindow() == pw) { pwClosed = true; updateDatasetButton(); } } }); return pw; }
Example #3
Source File: InteractivePlotter.java From Scripts with GNU General Public License v3.0 | 5 votes |
private PlotInstance(final PlotWindow plotWindow) { this.plotWindow = plotWindow; if (plotWindow != null) { this.title = plotWindow.getTitle(); this.plot = plotWindow.getPlot(); } }