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 class
MarkerSessionExporter.MarkerWriter
Writes GPX file from marker data.
-
Field Summary
Fields Modifier and Type Field Description private boolean
canExport
private java.time.Instant
metaTime
-
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 void
addDataFile(java.io.OutputStream out)
org.w3c.dom.Element
export(SessionWriter.ExportSupport support)
Save meta data to the .jos file.java.util.Collection<Layer>
getDependencies()
Return the Layers, this Layer depends on.java.awt.Component
getExportPanel()
The GUI for exporting this layer.boolean
requiresZip()
Return true, if some data needs to be included in the zip archive.protected void
setMetaTime(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:SessionLayerExporter
Return the Layers, this Layer depends on.- Specified by:
getDependencies
in interfaceSessionLayerExporter
- Overrides:
getDependencies
in classAbstractSessionExporter<MarkerLayer>
- Returns:
- the layer dependencies
-
getExportPanel
public java.awt.Component getExportPanel()
Description copied from interface:SessionLayerExporter
The GUI for exporting this layer.- Returns:
- the export panel
-
requiresZip
public boolean requiresZip()
Description copied from interface:SessionLayerExporter
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.- Specified by:
requiresZip
in interfaceSessionLayerExporter
- Overrides:
requiresZip
in classAbstractSessionExporter<MarkerLayer>
- Returns:
true
if some data needs to be included in the zip archive,false
otherwise.
-
export
public org.w3c.dom.Element export(SessionWriter.ExportSupport support) throws java.io.IOException
Description copied from interface:SessionLayerExporter
Save meta data to the .jos file. Return a layer XML element. Usesupport
to 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)
-
-