Class MarkerSessionExporter
- java.lang.Object
-
- org.openstreetmap.josm.io.session.AbstractSessionExporter<MarkerLayer>
-
- org.openstreetmap.josm.io.session.MarkerSessionExporter
-
- All Implemented Interfaces:
SessionLayerExporter
public class MarkerSessionExporter extends AbstractSessionExporter<MarkerLayer>
Session exporter forMarkerLayer.- Since:
- 5684
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMarkerSessionExporter.MarkerWriterWrites GPX file from marker data.
-
Field Summary
Fields Modifier and Type Field Description private booleancanExportprivate java.time.InstantmetaTime-
Fields inherited from class org.openstreetmap.josm.io.session.AbstractSessionExporter
export, layer
-
-
Constructor Summary
Constructors Constructor Description MarkerSessionExporter(MarkerLayer layer)Constructs a newMarkerSessionExporter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddDataFile(java.io.OutputStream out)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.protected voidsetMetaTime(java.time.Instant metaTime)-
Methods inherited from class org.openstreetmap.josm.io.session.AbstractSessionExporter
shallExport
-
-
-
-
Constructor Detail
-
MarkerSessionExporter
public MarkerSessionExporter(MarkerLayer layer)
Constructs a newMarkerSessionExporter.- Parameters:
layer- marker layer to export
-
-
Method Detail
-
getDependencies
public java.util.Collection<Layer> 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
public java.awt.Component getExportPanel()
Description copied from interface:SessionLayerExporterThe GUI for exporting this layer.- Returns:
- the export panel
-
requiresZip
public boolean 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
public org.w3c.dom.Element export(SessionWriter.ExportSupport support) throws java.io.IOException
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:
java.io.IOException- if any I/O error occurs
-
addDataFile
protected void addDataFile(java.io.OutputStream out)
-
setMetaTime
protected void setMetaTime(java.time.Instant metaTime)
-
-