public abstract class SegmentTrackerFactory extends Object implements SpotTrackerFactory
| Modifier and Type | Field and Description |
|---|---|
protected String |
errorMessage |
| Constructor and Description |
|---|
SegmentTrackerFactory() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkSettingsValidity(Map<String,Object> settings)
Checks the validity of the given settings map for the tracker.
|
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.
|
ImageIcon |
getIcon()
Returns the icon for this action.
|
boolean |
marshall(Map<String,Object> settings,
org.jdom2.Element element)
Marshall into the
Element the settings in the Map that
relate to segment linking: gap-closing, merging segments, splitting
segments. |
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.
|
boolean |
unmarshallSegment(org.jdom2.Element element,
Map<String,Object> settings,
StringBuilder errorHolder) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcopy, create, getTrackerConfigurationPanelforbidMultithreading, getInfoText, getKey, getNameprotected String errorMessage
public ImageIcon getIcon()
TrackMateModulenull.getIcon in interface TrackMateModulenull to be safely ignored.public boolean marshall(Map<String,Object> settings, org.jdom2.Element element)
Element the settings in the Map that
relate to segment linking: gap-closing, merging segments, splitting
segments.marshall in interface SpotTrackerFactorySpotTrackerFactory.getErrorMessage()public boolean unmarshallSegment(org.jdom2.Element element, Map<String,Object> settings, StringBuilder errorHolder)
public boolean unmarshall(org.jdom2.Element element, Map<String,Object> settings)
SpotTrackerFactoryConcretely: the the specific settings map for the targeted tracker is updated from the element.
unmarshall in interface SpotTrackerFactoryelement - 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.SpotTrackerFactory.getErrorMessage()public String toString(Map<String,Object> sm)
SpotTrackerFactorytoString in interface SpotTrackerFactorysm - the map to echo.public Map<String,Object> getDefaultSettings()
SpotTrackerFactorygetDefaultSettings in interface SpotTrackerFactorypublic boolean checkSettingsValidity(Map<String,Object> settings)
SpotTrackerFactorycheckSettingsValidity in interface SpotTrackerFactorySpotTrackerFactory.getErrorMessage()public String getErrorMessage()
SpotTrackerFactorygetErrorMessage in interface SpotTrackerFactorySpotTrackerFactory.marshall(Map, Element),
SpotTrackerFactory.unmarshall(Element, Map),
SpotTrackerFactory.checkSettingsValidity(Map)Copyright © 2010–2024 TrackMate. All rights reserved.