public interface SpotTrackerFactory extends TrackMateModule
Modifier and Type | Method and Description |
---|---|
boolean |
checkSettingsValidity(Map<String,Object> settings)
Checks the validity of the given settings map for the tracker.
|
SpotTracker |
create(SpotCollection spots,
Map<String,Object> settings)
Instantiates and returns a new
SpotTracker configured to operate
on the specified SpotCollection , using the specified settins map. |
Map<String,Object> |
getDefaultSettings()
Returns a new default settings map suitable for the tracker Settings are
instantiated with default values.
|
String |
getErrorMessage()
Returns a meaningful error message for the last action on this factory.
|
ConfigurationPanel |
getTrackerConfigurationPanel(Model model)
Returns a new GUI panel able to configure the settings suitable for the
target tracker identified by the key parameter.
|
boolean |
marshall(Map<String,Object> settings,
org.jdom2.Element element)
Marshalls a settings map to a JDom element, ready for saving to XML.
|
String |
toString(Map<String,Object> sm)
A utility method that builds a string representation of a settings map
owing to the currently selected tracker in this provider.
|
boolean |
unmarshall(org.jdom2.Element element,
Map<String,Object> settings)
Un-marshall a JDom element to update a settings map, and sets the target
tracker of this provider from the element.
|
forbidMultithreading, getIcon, getInfoText, getKey, getName
SpotTracker create(SpotCollection spots, Map<String,Object> settings)
SpotTracker
configured to operate
on the specified SpotCollection
, using the specified settins map.spots
- the SpotCollection
containing the spots to track.settings
- the settings map configuring the tracker.SpotTracker
instance.ConfigurationPanel getTrackerConfigurationPanel(Model model)
model
- the model that will be modified by the target tracker.boolean marshall(Map<String,Object> settings, org.jdom2.Element element)
Only parameters specific to the concrete tracker factory are marshalled.
The element also always receive an attribute named
that saves the target
SpotTracker
key.
getErrorMessage()
boolean unmarshall(org.jdom2.Element element, Map<String,Object> settings)
Concretely: the the specific settings map for the targeted tracker is updated from the element.
element
- the JDom element to read from.settings
- the map to update. Is cleared prior to updating, so that it
contains only the parameters specific to the target tracker.getErrorMessage()
String toString(Map<String,Object> sm)
sm
- the map to echo.Map<String,Object> getDefaultSettings()
boolean checkSettingsValidity(Map<String,Object> settings)
getErrorMessage()
String getErrorMessage()
marshall(Map, Element)
,
unmarshall(Element, Map)
,
checkSettingsValidity(Map)
Copyright © 2015–2021 Fiji. All rights reserved.