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);
}
}
}
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();
}
}
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();
}
}
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();
}
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);
}
}
Aggregations