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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.w3c.dom.Elementexport(SessionWriter.ExportSupport support)Save meta data to the .jos file.java.util.Collection<Layer>getDependencies()Return the Layers, this Layer depends on.java.awt.ComponentgetExportPanel()The GUI for exporting this layer.booleanrequiresZip()Return true, if some data needs to be included in the zip archive.booleanshallExport()Return true, if the layer should be included in the list of exported layers.
-
-
-
Method Detail
-
getDependencies
java.util.Collection<Layer> getDependencies()
Return the Layers, this Layer depends on.- Returns:
- the layer dependencies
-
getExportPanel
java.awt.Component 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
org.w3c.dom.Element export(SessionWriter.ExportSupport support) throws java.io.IOException
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:
java.io.IOException- if any I/O error occurs
-
-