Class WMSLayerExporter
java.lang.Object
org.openstreetmap.josm.gui.io.importexport.FileExporter
org.openstreetmap.josm.gui.io.importexport.WMSLayerExporter
- All Implemented Interfaces:
MainLayerManager.ActiveLayerChangeListener
Export a WMS layer to a serialized binary file that can be imported later via
WMSLayerImporter.- Since:
- 5457
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intWhich version of the file we exportFields inherited from class org.openstreetmap.josm.gui.io.importexport.FileExporter
filter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled whenever the active or edit layer changed.voidexportData(File file, Layer layer) Execute the data export.Methods inherited from class org.openstreetmap.josm.gui.io.importexport.FileExporter
acceptFile, exportDataQuiet, isCanceled, isEnabled, setCanceled, setEnabled
-
Field Details
-
CURRENT_FILE_VERSION
Which version of the file we export- See Also:
-
-
Constructor Details
-
WMSLayerExporter
public WMSLayerExporter()Constructs a newWMSLayerExporter
-
-
Method Details
-
exportData
Description copied from class:FileExporterExecute the data export. (To be overridden by subclasses.)- Overrides:
exportDatain classFileExporter- Parameters:
file- target filelayer- the layer to export- Throws:
IOException- in case of an IO error
-
activeOrEditLayerChanged
Description copied from interface:MainLayerManager.ActiveLayerChangeListenerCalled whenever the active or edit layer changed.You can be sure that this layer is still contained in this set.
Listeners are called in the EDT thread and you can manipulate the layer manager in the current thread.
- Specified by:
activeOrEditLayerChangedin interfaceMainLayerManager.ActiveLayerChangeListener- Overrides:
activeOrEditLayerChangedin classFileExporter- Parameters:
e- The change event.
-