|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectij.measure.ResultsTable
public class ResultsTable
This is a table for storing measurement results as columns of real numbers.
Field Summary | |
---|---|
static int |
AREA
|
static int |
COLUMN_IN_USE
|
static int |
COLUMN_NOT_FOUND
|
static int |
MAX
|
static int |
MAX_COLUMNS
|
static int |
MEAN
|
static int |
MIN
|
static int |
MODE
|
static int |
PERIMETER
|
static int |
ROI_HEIGHT
|
static int |
ROI_WIDTH
|
static int |
ROI_X
|
static int |
ROI_Y
|
static int |
STD_DEV
|
static int |
TABLE_FULL
|
static int |
X_CENTER_OF_MASS
|
static int |
X_CENTROID
|
static int |
Y_CENTER_OF_MASS
|
static int |
Y_CENTROID
|
Constructor Summary | |
---|---|
ResultsTable()
Constructs an empty ResultsTable with the counter=0 and no columns. |
Method Summary | |
---|---|
void |
addLabel(java.lang.String heading,
java.lang.String label)
Adds a label to the beginning of the current row. |
void |
addValue(int column,
double value)
Adds a value to the end of the given column. |
void |
addValue(java.lang.String column,
double value)
Adds a value to the end of the given column. |
void |
disableRowLabels()
Set the row label column to null. |
float[] |
getColumn(int column)
Returns a copy of the given column as a float array. |
java.lang.String |
getColumnHeadings()
Returns a tab-delimited string containing the column headings. |
int |
getColumnIndex(java.lang.String heading)
Returns the index of the first column with the given heading. |
int |
getCounter()
Returns the current value of the measurement counter. |
int |
getFreeColumn(java.lang.String heading)
Sets the heading of the the first available column and returns that column's index. |
java.lang.String |
getRowAsString(int row)
Returns a tab-delimited string representing the given row, where 0<=row<=counter-1. |
float |
getValue(int column,
int row)
Returns the value of the given column and row, where 0<=column |
void |
incrementCounter()
Increments the measurement counter by one. |
void |
reset()
Clears all the columns and sets the counter to zero. |
void |
setHeading(int column,
java.lang.String heading)
Changes the heading of the given column. |
void |
setPrecision(int precision)
Sets the number of digits to the right of decimal point. |
void |
setValue(int column,
int row,
double value)
Sets the value of the given column and row, where where 0<=column |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int MAX_COLUMNS
public static final int COLUMN_NOT_FOUND
public static final int COLUMN_IN_USE
public static final int TABLE_FULL
public static final int AREA
public static final int MEAN
public static final int STD_DEV
public static final int MODE
public static final int MIN
public static final int MAX
public static final int X_CENTROID
public static final int Y_CENTROID
public static final int X_CENTER_OF_MASS
public static final int Y_CENTER_OF_MASS
public static final int PERIMETER
public static final int ROI_X
public static final int ROI_Y
public static final int ROI_WIDTH
public static final int ROI_HEIGHT
Constructor Detail |
---|
public ResultsTable()
Method Detail |
---|
public void incrementCounter()
public int getCounter()
public void addValue(int column, double value)
public void addValue(java.lang.String column, double value)
public void addLabel(java.lang.String heading, java.lang.String label)
public void disableRowLabels()
public float[] getColumn(int column)
public int getColumnIndex(java.lang.String heading)
public int getFreeColumn(java.lang.String heading)
public float getValue(int column, int row)
public void setValue(int column, int row, double value)
public java.lang.String getColumnHeadings()
public java.lang.String getRowAsString(int row)
public void setHeading(int column, java.lang.String heading)
public void setPrecision(int precision)
public void reset()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |