Interface SessionLayerExporter
- All Known Implementing Classes:
AbstractSessionExporter,GenericSessionExporter,GeoImageSessionExporter,GpxRoutesSessionExporter,GpxTracksSessionExporter,ImagerySessionExporter,MarkerSessionExporter,NoteSessionExporter,OsmDataSessionExporter
public interface SessionLayerExporter
Session layer exporter.
- Since:
- 4685
-
Method Summary
Modifier and TypeMethodDescriptionexport(SessionWriter.ExportSupport support) Save meta data to the .jos file.Return the Layers, this Layer depends on.The GUI for exporting this layer.booleanReturn true, if some data needs to be included in the zip archive.booleanReturn true, if the layer should be included in the list of exported layers.
-
Method Details
-
getDependencies
Return the Layers, this Layer depends on.- Returns:
- the layer dependencies
-
getExportPanel
The GUI for exporting this layer.- Returns:
- the export panel
-
shallExport
boolean shallExport()Return true, if the layer should be included in the list of exported layers. The user can veto this in the export panel.- Returns:
trueif the layer should be included in the list of exported layers,falseotherwise.
-
requiresZip
boolean requiresZip()Return true, if some data needs to be included in the zip archive. This decision depends on the user selection in the export panel. If any layer requires zip, the user can only save as .joz. Otherwise both .jos and .joz are possible.- Returns:
trueif some data needs to be included in the zip archive,falseotherwise.
-
export
Save meta data to the .jos file. Return a layer XML element. Usesupportto save files in the zip archive as needed.- Parameters:
support- support class providing export utilities- Returns:
- the resulting XML element
- Throws:
IOException- if any I/O error occurs
-