Class MarkerSessionExporter
java.lang.Object
org.openstreetmap.josm.io.session.AbstractSessionExporter<MarkerLayer>
org.openstreetmap.josm.io.session.MarkerSessionExporter
- All Implemented Interfaces:
SessionLayerExporter
Session exporter for
MarkerLayer.- Since:
- 5684
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classWrites GPX file from marker data. -
Field Summary
FieldsFields inherited from class org.openstreetmap.josm.io.session.AbstractSessionExporter
export, layer -
Constructor Summary
ConstructorsConstructorDescriptionMarkerSessionExporter(MarkerLayer layer) Constructs a newMarkerSessionExporter. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddDataFile(OutputStream out) export(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.protected voidsetMetaTime(Instant metaTime) Methods inherited from class org.openstreetmap.josm.io.session.AbstractSessionExporter
shallExport
-
Field Details
-
metaTime
-
canExport
-
-
Constructor Details
-
MarkerSessionExporter
Constructs a newMarkerSessionExporter.- Parameters:
layer- marker layer to export
-
-
Method Details
-
getDependencies
Description copied from interface:SessionLayerExporterReturn the Layers, this Layer depends on.- Specified by:
getDependenciesin interfaceSessionLayerExporter- Overrides:
getDependenciesin classAbstractSessionExporter<MarkerLayer>- Returns:
- the layer dependencies
-
getExportPanel
Description copied from interface:SessionLayerExporterThe GUI for exporting this layer.- Returns:
- the export panel
-
requiresZip
Description copied from interface:SessionLayerExporterReturn 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.- Specified by:
requiresZipin interfaceSessionLayerExporter- Overrides:
requiresZipin classAbstractSessionExporter<MarkerLayer>- Returns:
trueif some data needs to be included in the zip archive,falseotherwise.
-
export
Description copied from interface:SessionLayerExporterSave 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
-
addDataFile
-
setMetaTime
-