Search in sources :

Example 6 with TextWindow

use of ij.text.TextWindow in project GDSC-SMLM by aherbert.

the class TraceDiffusion method createSummaryTable.

private void createSummaryTable() {
    if (java.awt.GraphicsEnvironment.isHeadless()) {
        if (header == null) {
            header = createHeader();
            IJ.log(header);
        }
    } else {
        if (summaryTable == null || !summaryTable.isVisible()) {
            summaryTable = new TextWindow(TITLE + " Data Summary", createHeader(), "", 800, 300);
            summaryTable.setVisible(true);
        }
    }
}
Also used : TextWindow(ij.text.TextWindow)

Example 7 with TextWindow

use of ij.text.TextWindow in project GDSC-SMLM by aherbert.

the class BenchmarkFilterAnalysis method createSummaryWindow.

private void createSummaryWindow() {
    if (!showSummaryTable)
        return;
    if (isHeadless) {
        IJ.log(createResultsHeader(true));
    } else {
        if (summaryWindow == null || !summaryWindow.isShowing()) {
            String header = createResultsHeader(true);
            summaryWindow = new TextWindow(TITLE + " Summary", header, "", 900, 300);
        }
        if (clearTables)
            summaryWindow.getTextPanel().clear();
    }
}
Also used : TextWindow(ij.text.TextWindow) BufferedTextWindow(gdsc.core.ij.BufferedTextWindow)

Example 8 with TextWindow

use of ij.text.TextWindow in project GDSC-SMLM by aherbert.

the class BenchmarkFilterAnalysis method createComponentAnalysisWindow.

private void createComponentAnalysisWindow() {
    if (isHeadless) {
        IJ.log(createComponentAnalysisHeader());
    } else {
        if (componentAnalysisWindow == null || !componentAnalysisWindow.isShowing()) {
            String header = createComponentAnalysisHeader();
            componentAnalysisWindow = new TextWindow(TITLE + " Component Analysis", header, "", 900, 300);
        }
        if (clearTables)
            componentAnalysisWindow.getTextPanel().clear();
    }
}
Also used : TextWindow(ij.text.TextWindow) BufferedTextWindow(gdsc.core.ij.BufferedTextWindow)

Example 9 with TextWindow

use of ij.text.TextWindow in project GDSC-SMLM by aherbert.

the class BackgroundEstimator method showResults.

private void showResults() {
    Collections.sort(results, new Comparator<double[]>() {

        public int compare(double[] o1, double[] o2) {
            // Sort on slice number
            return (o1[0] < o2[0]) ? -1 : 1;
        }
    });
    BufferedTextWindow tw = new BufferedTextWindow(new TextWindow(imp.getTitle() + " Background", createHeader(), "", 800, 400));
    for (double[] result : results) tw.append(createResult(result));
    tw.flush();
}
Also used : BufferedTextWindow(gdsc.core.ij.BufferedTextWindow) TextWindow(ij.text.TextWindow) BufferedTextWindow(gdsc.core.ij.BufferedTextWindow)

Example 10 with TextWindow

use of ij.text.TextWindow in project GDSC-SMLM by aherbert.

the class BenchmarkSpotFit method createTable.

private void createTable() {
    if (summaryTable == null || !summaryTable.isVisible()) {
        summaryTable = new TextWindow(TITLE, createHeader(false), "", 1000, 300);
        summaryTable.setVisible(true);
    }
}
Also used : TextWindow(ij.text.TextWindow)

Aggregations

TextWindow (ij.text.TextWindow)61 Point (java.awt.Point)11 BufferedTextWindow (uk.ac.sussex.gdsc.core.ij.BufferedTextWindow)11 BufferedTextWindow (gdsc.core.ij.BufferedTextWindow)7 ArrayList (java.util.ArrayList)6 PointPair (uk.ac.sussex.gdsc.core.match.PointPair)5 IJ (ij.IJ)4 ImagePlus (ij.ImagePlus)4 LinkedList (java.util.LinkedList)4 Coordinate (uk.ac.sussex.gdsc.core.match.Coordinate)4 ImageROIPainter (gdsc.smlm.ij.utils.ImageROIPainter)3 List (java.util.List)3 PeakResultPoint (uk.ac.sussex.gdsc.smlm.results.PeakResultPoint)3 Coordinate (gdsc.core.match.Coordinate)2 MatchResult (gdsc.core.match.MatchResult)2 PointPair (gdsc.core.match.PointPair)2 TIntHashSet (gnu.trove.set.hash.TIntHashSet)2 GenericDialog (ij.gui.GenericDialog)2 ImageWindow (ij.gui.ImageWindow)2 PlotWindow (ij.gui.PlotWindow)2