public class ShollTable extends SNTTable
SNTTable
for Sholl metrics and Profile lists.modCount
Constructor and Description |
---|
ShollTable()
Instantiates a new empty table.
|
ShollTable(Profile profile)
Instantiates a new table from a
Profile |
ShollTable(ShollStats... stats)
Instantiates a new table capable of detailing metrics from a
LinearProfileStats , a NormalizedProfileStats instance or
both. |
Modifier and Type | Method and Description |
---|---|
String |
getTitle() |
boolean |
hasContext() |
void |
listProfileEntries()
Lists (details) the
Profile entries. |
boolean |
saveSilently(File file) |
void |
setContext(Context context)
Sets the services required by this ShollTable, namely
PrefService ,
used to read advanced options set by ShollAnalysisPrefsCmd . |
void |
setDetailedSummary(boolean detailed)
Sets whether extensive metrics should be listed when outputting summaries.
|
void |
setTitle(String title) |
void |
summarize(ShollTable table,
String header)
Runs
summarize(String) and appends (copies) the summary row to the
specified table |
void |
summarize(String header)
Summarizes
Profile and ShollStats metrics to a new row. |
addColumn, addColumn, appendToLastRow, fillEmptyCells, hasUnsavedData, insertRow, removeColumn, save, save, set, set, set, toString, validate
createColumn
add, add, addAll, addAll, getRowCount, getRowHeader, insertColumns, removeRows, setColumnCount, setRowCount, setRowHeader
ensureCapacity, setSize
clear, clone, contains, forEach, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, size, sort, spliterator, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
add, add, addAll, addAll, appendColumn, appendColumn, appendColumns, appendColumns, appendRow, appendRow, appendRows, appendRows, clear, 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
equals, hashCode, replaceAll, sort, spliterator
parallelStream, removeIf, stream
public ShollTable()
public ShollTable(Profile profile)
Profile
profile
- the profile to be listed and/or summarized by this tablepublic ShollTable(ShollStats... stats)
LinearProfileStats
, a NormalizedProfileStats
instance or
both.stats
- the ShollStats
instances from which metrics should be
retrieved. It is assumed that all instances analyze the same
Profile
public void listProfileEntries()
Profile
entries. If this table is aware of
ShollStats
that successfully fitted a model to the profile, XY
coordinates of the fitted curve are also be listed.public void setDetailedSummary(boolean detailed)
detailed
- if true summaries will list verbose details, otherwise
summaries will fall back to the 'default' repertoire of
metricspublic void summarize(ShollTable table, String header)
summarize(String)
and appends (copies) the summary row to the
specified tabletable
- the table to which the summary row should be copiedheader
- the header for the summary row. If empty or null, the profile
identifier is usedsetDetailedSummary(boolean)
,
summarize(String)
public void summarize(String header)
Profile
and ShollStats
metrics to a new row. Note
that some of the reported metrics rely on the options set in ShollAnalysisPrefsCmd
.
To ensure that those are read, you should run setContext(Context)
,
so that a PrefService
is set.header
- the header for the summary row. If empty or null, the profile
identifier is usedsetDetailedSummary(boolean)
public void setContext(Context context) throws IllegalStateException, IllegalArgumentException
PrefService
,
used to read advanced options set by ShollAnalysisPrefsCmd
.setContext
in class SNTTable
context
- the SciJava application contextIllegalStateException
- If this ShollTable already has a contextIllegalArgumentException
- If context
cannot provide the
services required by this ShollTablepublic boolean hasContext()
public boolean saveSilently(File file)
public void setTitle(String title)
public String getTitle()
Copyright © 2015–2021 Fiji. All rights reserved.