public class OsmDataSessionExporter extends Object implements SessionLayerExporter
Modifier and Type | Class and Description |
---|---|
private class |
OsmDataSessionExporter.LayerSaveAction |
Modifier and Type | Field and Description |
---|---|
private JCheckBox |
export |
private JRadioButton |
include |
private OsmDataLayer |
layer |
private JRadioButton |
link |
Constructor and Description |
---|
OsmDataSessionExporter(OsmDataLayer layer)
Constructs a new
OsmDataSessionExporter . |
Modifier and Type | Method and Description |
---|---|
protected void |
addDataFile(OutputStream out) |
Element |
export(SessionWriter.ExportSupport support)
Save meta data to the .jos file.
|
Collection<Layer> |
getDependencies()
Return the Layers, this Layer depends on.
|
JPanel |
getExportPanel()
The GUI for exporting this layer.
|
boolean |
requiresZip()
Return true, if some data needs to be included in the zip archive.
|
boolean |
shallExport()
Return true, if the layer should be included in the list of exported layers.
|
private final OsmDataLayer layer
private JRadioButton link
private JRadioButton include
public OsmDataSessionExporter(OsmDataLayer layer)
OsmDataSessionExporter
.layer
- Data layer to exportpublic Collection<Layer> getDependencies()
SessionLayerExporter
getDependencies
in interface SessionLayerExporter
public JPanel getExportPanel()
SessionLayerExporter
getExportPanel
in interface SessionLayerExporter
public boolean shallExport()
SessionLayerExporter
shallExport
in interface SessionLayerExporter
true
if the layer should be included in the list of exported layers, false
otherwise.public boolean requiresZip()
SessionLayerExporter
requiresZip
in interface SessionLayerExporter
true
if some data needs to be included in the zip archive, false
otherwise.public Element export(SessionWriter.ExportSupport support) throws IOException
SessionLayerExporter
support
to save files in the zip archive as needed.export
in interface SessionLayerExporter
support
- support class providing export utilitiesIOException
- if any I/O error occursprotected void addDataFile(OutputStream out)