Package sc.fiji.snt.analysis.sholl.gui
Class ShollTable
java.lang.Object
java.util.AbstractCollection<org.scijava.table.Column<? extends Object>>
java.util.AbstractList<org.scijava.table.Column<? extends Object>>
java.util.ArrayList<org.scijava.table.Column<? extends Object>>
org.scijava.util.SizableArrayList<org.scijava.table.Column<? extends Object>>
org.scijava.table.AbstractTable<org.scijava.table.Column<? extends Object>,Object>
org.scijava.table.DefaultGenericTable
sc.fiji.snt.analysis.SNTTable
sc.fiji.snt.analysis.sholl.gui.ShollTable
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<org.scijava.table.Column<? extends Object>>,Collection<org.scijava.table.Column<? extends Object>>,List<org.scijava.table.Column<? extends Object>>,RandomAccess,SequencedCollection<org.scijava.table.Column<? extends Object>>,org.scijava.table.GenericTable,org.scijava.table.Table<org.scijava.table.Column<? extends Object>,,Object> org.scijava.util.Sizable
Implementation of
SNTTable for Sholl metrics and Profile lists.- Author:
- Tiago Ferreira
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new empty table.ShollTable(ShollStats... stats) Instantiates a new table capable of detailing metrics from aLinearProfileStats, aNormalizedProfileStatsinstance or both.ShollTable(Profile profile) Instantiates a new table from aProfile -
Method Summary
Modifier and TypeMethodDescriptiongetTitle()Gets the title of the table.booleanvoidLists (details) theProfileentries.booleansaveSilently(File file) voidsetContext(org.scijava.Context context) Sets the services required by this ShollTable, namelyPrefService, used to read advanced options set byShollAnalysisPrefsCmd.voidsetDetailedSummary(boolean detailed) Sets whether extensive metrics should be listed when outputting summaries.voidSets the title of the table.voidSummarizesProfileandShollStatsmetrics to a new row.voidsummarize(ShollTable table, String header) Runssummarize(String)and appends (copies) the summary row to the specified tableMethods inherited from class sc.fiji.snt.analysis.SNTTable
addColumn, addColumn, addGenericColumn, appendToLastRow, clear, createOrUpdateDisplay, fillEmptyCells, fromFile, fromFile, fromGenericTable, geColumnStats, geColumnStats, geRowStats, geRowStats, getColumnHeaders, getColumnHeaders, getSummaryRow, hasUnsavedData, insertRow, isSummarized, removeColumn, removeSummary, replace, save, save, save, set, set, set, show, show, summarize, toString, toString, updateDisplay, validateMethods inherited from class org.scijava.table.DefaultGenericTable
createColumnMethods inherited from class org.scijava.table.AbstractTable
add, add, addAll, addAll, getRowCount, getRowHeader, insertColumns, removeRows, setColumnCount, setRowCount, setRowHeaderMethods inherited from class org.scijava.util.SizableArrayList
ensureCapacity, setSizeMethods inherited from class java.util.ArrayList
addFirst, addLast, clone, contains, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addFirst, addLast, equals, getFirst, getLast, hashCode, removeFirst, removeLast, replaceAll, reversed, sort, spliteratorMethods inherited from interface org.scijava.util.Sizable
sizeMethods inherited from interface org.scijava.table.Table
add, add, addAll, addAll, appendColumn, appendColumn, appendColumns, appendColumns, appendRow, appendRow, appendRows, appendRows, contains, containsAll, get, get, get, get, getColumnCount, getColumnHeader, getColumnIndex, getRowCount, getRowHeader, getRowIndex, indexOf, insertColumn, insertColumn, insertColumns, insertColumns, insertRow, insertRow, insertRows, insertRows, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeColumn, removeColumns, removeColumns, removeRow, removeRow, removeRows, removeRows, retainAll, set, setColumnCount, setColumnHeader, setDimensions, setRowCount, setRowHeader, size, subList, toArray, toArray
-
Constructor Details
-
ShollTable
public ShollTable()Instantiates a new empty table. -
ShollTable
Instantiates a new table from aProfile- Parameters:
profile- the profile to be listed and/or summarized by this table
-
ShollTable
Instantiates a new table capable of detailing metrics from aLinearProfileStats, aNormalizedProfileStatsinstance or both.- Parameters:
stats- theShollStatsinstances from which metrics should be retrieved. It is assumed that all instances analyze the sameProfile
-
-
Method Details
-
listProfileEntries
public void listProfileEntries()Lists (details) theProfileentries. If this table is aware ofShollStatsthat successfully fitted a model to the profile, XY coordinates of the fitted curve are also be listed. -
setDetailedSummary
public void setDetailedSummary(boolean detailed) Sets whether extensive metrics should be listed when outputting summaries.- Parameters:
detailed- if true summaries will list verbose details, otherwise summaries will fall back to the 'default' repertoire of metrics
-
summarize
Runssummarize(String)and appends (copies) the summary row to the specified table- Parameters:
table- the table to which the summary row should be copiedheader- the header for the summary row. If empty or null, the profile identifier is used- See Also:
-
summarize
SummarizesProfileandShollStatsmetrics to a new row. Note that some of the reported metrics rely on the options set inShollAnalysisPrefsCmd. To ensure that those are read, you should runsetContext(Context), so that aPrefServiceis set.- Parameters:
header- the header for the summary row. If empty or null, the profile identifier is used- See Also:
-
setContext
public void setContext(org.scijava.Context context) throws IllegalStateException, IllegalArgumentException Sets the services required by this ShollTable, namelyPrefService, used to read advanced options set byShollAnalysisPrefsCmd.- Overrides:
setContextin classSNTTable- Parameters:
context- the SciJava application context- Throws:
IllegalStateException- If this ShollTable already has a contextIllegalArgumentException- Ifcontextcannot provide the services required by this ShollTable
-
hasContext
public boolean hasContext() -
saveSilently
-
setTitle
Description copied from class:SNTTableSets the title of the table. -
getTitle
Description copied from class:SNTTableGets the title of the table.Returns the table's title, or "SNT Measurements" if no title has been set.
-