public class TmXmlWriter extends Object
Modifier and Type | Field and Description |
---|---|
protected Logger |
logger |
protected org.jdom2.Element |
root |
Constructor and Description |
---|
TmXmlWriter(File file)
Creates a new XML file writer for TrackMate.
|
TmXmlWriter(File file,
Logger logger)
Creates a new XML file writer for TrackMate.
|
Modifier and Type | Method and Description |
---|---|
void |
appendDisplaySettings(DisplaySettings ds) |
void |
appendGUIState(String currentPanelIdentifier)
Appends the current GUI state as a state string to the document.
|
void |
appendLog(String log)
Appends the log content to the document.
|
void |
appendModel(Model model)
Appends the content of a
Model to the file generated by this
writer. |
void |
appendSettings(Settings settings)
Appends the content of a
Settings object to the document. |
protected org.jdom2.Element |
echoAnalyzers(Settings settings) |
protected org.jdom2.Element |
echoDetectorSettings(Settings settings) |
protected org.jdom2.Element |
echoImageInfo(Settings settings) |
protected org.jdom2.Element |
echoInitialSpotFilter(Settings settings) |
protected org.jdom2.Element |
echoSpotFilters(Settings settings) |
protected org.jdom2.Element |
echoTrackerSettings(Settings settings) |
protected org.jdom2.Element |
echoTrackFilters(Settings settings) |
String |
toString() |
void |
writeToFile()
Writes the document to the file.
|
protected final org.jdom2.Element root
protected final Logger logger
public TmXmlWriter(File file)
file
- the xml file to write to, will be overwritten.public void writeToFile() throws FileNotFoundException, IOException
FileNotFoundException
IOException
appendLog(String)
,
appendModel(Model)
,
appendSettings(Settings)
public void appendModel(Model model)
Model
to the file generated by this
writer.model
- the Model
to write.public void appendSettings(Settings settings)
Settings
object to the document.settings
- the Settings
to write.public void appendLog(String log)
log
- the log content, as a String.public void appendGUIState(String currentPanelIdentifier)
currentPanelIdentifier
- the key to the panel currently displaying.public void appendDisplaySettings(DisplaySettings ds)
protected org.jdom2.Element echoDetectorSettings(Settings settings)
protected org.jdom2.Element echoTrackerSettings(Settings settings)
protected org.jdom2.Element echoImageInfo(Settings settings)
protected org.jdom2.Element echoInitialSpotFilter(Settings settings)
protected org.jdom2.Element echoSpotFilters(Settings settings)
protected org.jdom2.Element echoTrackFilters(Settings settings)
protected org.jdom2.Element echoAnalyzers(Settings settings)
Copyright © 2015–2021 Fiji. All rights reserved.