org.openstreetmap.josm.io.session
Class ImagerySessionExporter

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

public class ImagerySessionExporter
extends java.lang.Object
implements SessionLayerExporter

Session exporter for TMSLayer and WMSLayer.


Field Summary
private  javax.swing.JCheckBox export
           
private  ImageryLayer layer
           
 
Constructor Summary
ImagerySessionExporter(ImageryLayer layer)
           
ImagerySessionExporter(TMSLayer layer)
           
ImagerySessionExporter(WMSLayer layer)
           
 
Method Summary
 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 ImageryLayer layer

export

private javax.swing.JCheckBox export
Constructor Detail

ImagerySessionExporter

public ImagerySessionExporter(ImageryLayer layer)

ImagerySessionExporter

public ImagerySessionExporter(TMSLayer layer)

ImagerySessionExporter

public ImagerySessionExporter(WMSLayer 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


JOSM