public interface Table
| Modifier and Type | Method and Description |
|---|---|
void |
addRow(Object... os)
Adds a row to the table.
|
default void |
addRows(Client client,
ij.measure.ResultsTable results,
Long imageId,
Collection<? extends Roi> ijRois)
Adds rows from an ImageJ
ResultsTable. |
void |
addRows(Client client,
ij.measure.ResultsTable results,
Long imageId,
Collection<? extends Roi> ijRois,
String roiProperty)
Adds rows from an ImageJ
ResultsTable. |
TableData |
createTable()
Creates the corresponding TableData object.
|
int |
getColumnCount()
Returns the number of columns in the table.
|
String |
getColumnName(int column)
Returns the name of the column.
|
TableDataColumn[] |
getColumns()
Gets the
TableDataColumn which contains information on each column of the table |
Class<?> |
getColumnType(int column)
Returns the type of the column.
|
Object[][] |
getData()
Gets the value contained in the table
|
Object |
getData(int x,
int y)
Gets a certain value of the table
|
Long |
getFileId()
Returns the fileId of the table.
|
Long |
getId()
Returns the table ID.
|
String |
getName()
Returns the name of the table.
|
int |
getRowCount()
Returns the number of rows in the table.
|
boolean |
isComplete()
Checks if the table is complete
|
void |
saveAs(String path,
char delimiter)
Saves the current table as a character-delimited text file.
|
void |
setColumn(int column,
String columnName,
Class<?> type)
Sets the information about a certain column.
|
void |
setFileId(Long fileId)
Sets the fileId of the table.
|
void |
setId(Long id)
Sets the id of the table.
|
void |
setName(String name)
Sets the name of the table.
|
void |
setRowCount(int rowCount)
Sets the number of row in the table.
|
void |
truncateRow()
Deletes all unused row in the table
|
default void addRows(Client client, ij.measure.ResultsTable results, Long imageId, Collection<? extends Roi> ijRois) throws ServiceException, AccessException, ExecutionException
ResultsTable.client - The client handling the connection.results - An ImageJ results table.imageId - An image ID.ijRois - A list of ImageJ Rois.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.void addRows(Client client, ij.measure.ResultsTable results, Long imageId, Collection<? extends Roi> ijRois, String roiProperty) throws ServiceException, AccessException, ExecutionException
ResultsTable.client - The client handling the connection.results - An ImageJ results table.imageId - An image ID.ijRois - A list of ImageJ Rois.roiProperty - The Roi property storing the local ROI index/label. Defaults to ROI.IJ_PROPERTY if
null or empty.ServiceException - Cannot connect to OMERO.AccessException - Cannot access data.ExecutionException - A Facility can't be retrieved or instantiated.TableDataColumn[] getColumns()
TableDataColumn which contains information on each column of the tableTableDataColumn which contains information on each column of the table.Object[][] getData()
Object getData(int x, int y)
x - Row position.y - Column position.Long getFileId()
void setFileId(Long fileId)
fileId - New fileId.Long getId()
void setId(Long id)
id - New id.String getName()
void setName(String name)
name - New name.int getColumnCount()
String getColumnName(int column)
column - Column number.Class<?> getColumnType(int column)
column - Column number.int getRowCount()
void setRowCount(int rowCount)
rowCount - New rowCount.boolean isComplete()
void setColumn(int column,
String columnName,
Class<?> type)
column - Column number.columnName - Name of the column.type - Type of the column.IndexOutOfBoundsException - Column number is bigger than actual number of column in the table.void addRow(Object... os)
os - Value for each column for the row.IndexOutOfBoundsException - Table is not initialized or already full.IllegalArgumentException - Incorrect argument number.void truncateRow()
TableData createTable()
void saveAs(String path, char delimiter) throws FileNotFoundException, UnsupportedEncodingException
path - The path to the file where the table will be saved.delimiter - The character used to specify the boundary between columns.FileNotFoundException - The requested file cannot be written.UnsupportedEncodingException - If the UTF8 charset is not supported.Copyright © 2020–2023 GReD. All rights reserved.