org.openstreetmap.josm.io.session
Class GeoImageSessionExporter

java.lang.Object
  extended by org.openstreetmap.josm.io.session.GeoImageSessionExporter
All Implemented Interfaces:
SessionLayerExporter

public class GeoImageSessionExporter
extends java.lang.Object
implements SessionLayerExporter


Field Summary
private  javax.swing.JCheckBox export
           
private  GeoImageLayer layer
           
 
Constructor Summary
GeoImageSessionExporter(GeoImageLayer layer)
           
 
Method Summary
private  void addAttr(java.lang.String name, java.lang.String value, org.w3c.dom.Element element, SessionWriter.ExportSupport support)
           
 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.
 boolean shallExport()
          Return true, if the layer should be included in the list of exported layers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

layer

private GeoImageLayer layer

export

private javax.swing.JCheckBox export
Constructor Detail

GeoImageSessionExporter

public GeoImageSessionExporter(GeoImageLayer layer)
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 interface SessionLayerExporter

getExportPanel

public java.awt.Component getExportPanel()
Description copied from interface: SessionLayerExporter
The GUI for exporting this layer.

Specified by:
getExportPanel in interface SessionLayerExporter

shallExport

public boolean shallExport()
Description copied from interface: SessionLayerExporter
Return true, if the layer should be included in the list of exported layers. The user can veto this in the export panel.

Specified by:
shallExport in interface SessionLayerExporter

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 interface SessionLayerExporter

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. Use support to save files in the zip archive as needed.

Specified by:
export in interface SessionLayerExporter
Throws:
java.io.IOException

addAttr

private void addAttr(java.lang.String name,
                     java.lang.String value,
                     org.w3c.dom.Element element,
                     SessionWriter.ExportSupport support)


JOSM