Search in sources :

Example 1 with TextWindow

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

the class Noise 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;
        }
    });
    // Slow when there are lots of results ... Could change the output options in the future 
    TextWindow tw = new TextWindow(imp.getTitle() + " Noise", createHeader(), "", 800, 400);
    for (double[] result : results) {
        tw.append(createResult(result));
    }
// TODO - ImageJ plotting is not very good. Change to use a Java plotting library 
//plotResults();
}
Also used : TextWindow(ij.text.TextWindow)

Example 2 with TextWindow

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

the class FilterAnalysis method createResultsWindow.

private void createResultsWindow() {
    if (!showResultsTable)
        return;
    if (isHeadless) {
        IJ.log(createResultsHeader());
    } else {
        if (resultsWindow == null || !resultsWindow.isShowing()) {
            String header = createResultsHeader();
            resultsWindow = new TextWindow(TITLE + " Results", header, "", 900, 300);
        }
    }
}
Also used : TextWindow(ij.text.TextWindow)

Example 3 with TextWindow

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

the class DiffusionRateTest method createMsdTable.

private void createMsdTable(double baseMsd) {
    String header = createHeader(baseMsd);
    if (msdTable == null || !msdTable.isVisible()) {
        msdTable = new TextWindow("MSD Analysis", header, "", 800, 300);
        msdTable.setVisible(true);
    } else {
    //msdTable.getTextPanel().clear();
    }
}
Also used : TextWindow(ij.text.TextWindow)

Example 4 with TextWindow

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

the class DoubletAnalysis method createSummaryTable.

/**
	 * Creates the summary table.
	 */
private void createSummaryTable() {
    if (summaryTable == null || !summaryTable.isVisible()) {
        summaryTable = new TextWindow(TITLE + " Summary", createSummaryHeader(), "", 1000, 300);
        summaryTable.setVisible(true);
    }
}
Also used : TextWindow(ij.text.TextWindow)

Example 5 with TextWindow

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

the class DoubletAnalysis method createResultsTable.

/**
	 * Creates the results table.
	 */
private void createResultsTable() {
    if (resultsTable == null || !resultsTable.isVisible()) {
        resultsTable = new TextWindow(TITLE + " Results", createResultsHeader(), "", 1000, 300);
        resultsTable.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