public abstract class LAPTrackerFactory extends Object implements SpotTrackerFactory
Constructor and Description |
---|
LAPTrackerFactory() |
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.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create
forbidMultithreading, getInfoText, getKey, getName
public ImageIcon getIcon()
TrackMateModule
null
.getIcon
in interface TrackMateModule
null
to be safely ignored.public ConfigurationPanel getTrackerConfigurationPanel(Model model)
SpotTrackerFactory
getTrackerConfigurationPanel
in interface SpotTrackerFactory
model
- the model that will be modified by the target tracker.public boolean marshall(Map<String,Object> settings, org.jdom2.Element element)
SpotTrackerFactory
Only parameters specific to the concrete tracker factory are marshalled.
The element also always receive an attribute named
that saves the target
SpotTracker
key.
marshall
in interface SpotTrackerFactory
SpotTrackerFactory.getErrorMessage()
public boolean unmarshall(org.jdom2.Element element, Map<String,Object> settings)
SpotTrackerFactory
Concretely: the the specific settings map for the targeted tracker is updated from the element.
unmarshall
in interface SpotTrackerFactory
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.SpotTrackerFactory.getErrorMessage()
public String toString(Map<String,Object> sm)
SpotTrackerFactory
toString
in interface SpotTrackerFactory
sm
- the map to echo.public Map<String,Object> getDefaultSettings()
SpotTrackerFactory
getDefaultSettings
in interface SpotTrackerFactory
public boolean checkSettingsValidity(Map<String,Object> settings)
SpotTrackerFactory
checkSettingsValidity
in interface SpotTrackerFactory
SpotTrackerFactory.getErrorMessage()
public String getErrorMessage()
SpotTrackerFactory
getErrorMessage
in interface SpotTrackerFactory
SpotTrackerFactory.marshall(Map, Element)
,
SpotTrackerFactory.unmarshall(Element, Map)
,
SpotTrackerFactory.checkSettingsValidity(Map)
Copyright © 2015–2021 Fiji. All rights reserved.