本文整理了Java中ij.plugin.filter.Analyzer.getResultsTable()
方法的一些代码示例,展示了Analyzer.getResultsTable()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Analyzer.getResultsTable()
方法的具体详情如下:
包路径:ij.plugin.filter.Analyzer
类名称:Analyzer
方法名:getResultsTable
[英]Returns the default results table. This table should only be displayed in a the "Results" window.
[中]返回默认结果表。此表应仅显示在“结果”窗口中。
代码示例来源:origin: net.imagej/ij
public String getTitle() {
if (title==null && this==Analyzer.getResultsTable())
title = "Results";
return title;
}
代码示例来源:origin: net.imagej/ij
/** Returns the ResultsTable used by the Measure command. This
table must be displayed in the "Results" window. */
public static ResultsTable getResultsTable() {
return Analyzer.getResultsTable();
}
代码示例来源:origin: imagej/ImageJA
/** Returns the ResultsTable used by the Measure command. This
table must be displayed in the "Results" window. */
public static ResultsTable getResultsTable() {
return Analyzer.getResultsTable();
}
代码示例来源:origin: imagej/ImageJA
public String getTitle() {
if (title==null && this==Analyzer.getResultsTable())
title = "Results";
return title;
}
代码示例来源:origin: sc.fiji/mij
/**
* Returns the list of columns currently used in the ResultsTable.
*
* @return list of columns
*/
public static String[] getListColumns() {
ResultsTable rt = Analyzer.getResultsTable();
StringTokenizer st = new StringTokenizer(rt.getColumnHeadings());
int n = st.countTokens();
String[] strings = new String[n];
for (int i = 0; i < n; i++) {
strings[i] =st.nextToken();
}
return strings;
}
代码示例来源:origin: net.imagej/ij
private ResultsTable getResultsTable(String title) {
ResultsTable rt = getRT(title);
if (title==null)
title="Results";
if (rt==null && "Results".equals(title))
rt = Analyzer.getResultsTable();
if (rt==null)
interp.error("\""+title+"\" table not found");
return rt;
}
代码示例来源:origin: imagej/ImageJA
private ResultsTable getResultsTable(String title) {
ResultsTable rt = getRT(title);
if (title==null)
title="Results";
if (rt==null && "Results".equals(title))
rt = Analyzer.getResultsTable();
if (rt==null)
interp.error("\""+title+"\" table not found");
return rt;
}
代码示例来源:origin: net.imagej/ij
void updateResults() {
interp.getParens();
ResultsTable rt = Analyzer.getResultsTable();
rt.show("Results");
resultsPending = false;
}
代码示例来源:origin: net.imagej/ij
/** Deletes 'row1' through 'row2' of the "Results" window, where
'row1' and 'row2' must be in the range 0-Analyzer.getCounter()-1. */
public static void deleteRows(int row1, int row2) {
ResultsTable rt = Analyzer.getResultsTable();
rt.deleteRows(row1, row2);
rt.show("Results");
}
代码示例来源:origin: imagej/ImageJA
void updateResults() {
interp.getParens();
ResultsTable rt = Analyzer.getResultsTable();
rt.show("Results");
resultsPending = false;
}
代码示例来源:origin: net.imagej/ij
double getResultsCount() {
interp.getParens();
return Analyzer.getResultsTable().getCounter();
}
代码示例来源:origin: imagej/ImageJA
/** Deletes 'row1' through 'row2' of the "Results" window, where
'row1' and 'row2' must be in the range 0-Analyzer.getCounter()-1. */
public static void deleteRows(int row1, int row2) {
ResultsTable rt = Analyzer.getResultsTable();
rt.deleteRows(row1, row2);
rt.show("Results");
}
代码示例来源:origin: imagej/ImageJA
double getResultsCount() {
interp.getParens();
return Analyzer.getResultsTable().getCounter();
}
代码示例来源:origin: net.imagej/ij
private static void showResults() {
TextWindow resultsWindow = new TextWindow("Results", "", 400, 250);
textPanel = resultsWindow.getTextPanel();
textPanel.setResultsTable(Analyzer.getResultsTable());
}
代码示例来源:origin: imagej/ImageJA
private static void showResults() {
TextWindow resultsWindow = new TextWindow("Results", "", 400, 250);
textPanel = resultsWindow.getTextPanel();
textPanel.setResultsTable(Analyzer.getResultsTable());
}
代码示例来源:origin: sc.fiji/mij
/**
* Returns a specifying column the current instance of ResultsTable.
*
* @param heading heading of a column
* @return column specified by its heading
*/
public static Object getColumn(String heading){
ResultsTable rt=Analyzer.getResultsTable();
int col= rt.getColumnIndex(heading);
int counter=rt.getCounter();
double []results=new double[counter];
results=rt.getColumnAsDoubles(col);
return results;
}
代码示例来源:origin: net.imagej/ij
private Variable updateTable() {
String title = getTitleArg();
ResultsTable rt = getResultsTable(title);
rt.show(rt.getTitle());
if (rt==Analyzer.getResultsTable())
resultsPending = false;
return new Variable();
}
代码示例来源:origin: imagej/ImageJA
private Variable updateTable() {
String title = getTitleArg();
ResultsTable rt = getResultsTable(title);
rt.show(rt.getTitle());
if (rt==Analyzer.getResultsTable())
resultsPending = false;
return new Variable();
}
代码示例来源:origin: net.imagej/ij
private ResultsTable getResultsTable(boolean reportErrors) {
ResultsTable rt = Analyzer.getResultsTable();
int size = rt.size();
if (size==0) {
Frame frame = WindowManager.getFrontWindow();
if (frame!=null && (frame instanceof TextWindow)) {
TextPanel tp = ((TextWindow)frame).getTextPanel();
rt = tp.getOrCreateResultsTable();
size = rt!=null?rt.size():0;
}
}
if (size==0 && reportErrors)
interp.error("No results found");
return rt;
}
代码示例来源:origin: imagej/ImageJA
private ResultsTable getResultsTable(boolean reportErrors) {
ResultsTable rt = Analyzer.getResultsTable();
int size = rt.size();
if (size==0) {
Frame frame = WindowManager.getFrontWindow();
if (frame!=null && (frame instanceof TextWindow)) {
TextPanel tp = ((TextWindow)frame).getTextPanel();
rt = tp.getOrCreateResultsTable();
size = rt!=null?rt.size():0;
}
}
if (size==0 && reportErrors)
interp.error("No results found");
return rt;
}
内容来源于网络,如有侵权,请联系作者删除!