Package org.esa.snap.ui.layer
Class DefaultLayerEditorDescriptor
- java.lang.Object
-
- org.esa.snap.ui.layer.DefaultLayerEditorDescriptor
-
- All Implemented Interfaces:
com.bc.ceres.core.runtime.ConfigurableExtension
,LayerEditorDescriptor
@Deprecated public class DefaultLayerEditorDescriptor extends Object implements LayerEditorDescriptor, com.bc.ceres.core.runtime.ConfigurableExtension
Deprecated.since SNAP 2, no usedThe default descriptor for a layer editor. Layer editors are configured in your Module Manifestmodule.xml
by extending the extension pointlayerEditors
withlayerEditor
elements:<extension point="beam-ui:layerEditors"> <layerEditor> <editorFactory>org.esa.snap.visat.toolviews.layermanager.editors.VectorDataLayerEditorFactory</editorFactory> <layer>VectorDataLayer</layer> </layerEditor> <layerEditor> <editor>org.esa.snap.visat.toolviews.layermanager.editors.ImageLayerEditor</editor> <layerType>com.bc.ceres.glayer.support.ImageLayer$Type</layerType> </layerEditor> <extension>
Note: This API is not public yet and may significantly change in the future. Use it at your own risk.
- Since:
- BEAM 4.6
- Version:
- $Revision$ $Date$
-
-
Constructor Summary
Constructors Constructor Description DefaultLayerEditorDescriptor()
Deprecated.Constructor used by Ceres runtime for creating a dedicatedConfigurationElement
for thisLayerEditorDescriptor
.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
configure(com.bc.ceres.core.runtime.ConfigurationElement config)
Deprecated.protected ExtensionFactory
createExtensionFactory()
Deprecated.Creates an extension factory that maps an instances of aLayer
or aLayerType
to an instance of aLayerEditor
.Class<? extends Layer>
getLayerClass()
Deprecated.Gets theLayer
class which is associated directly with aLayerEditor
class or indirectly via aExtensionFactory
class.Class<? extends LayerEditor>
getLayerEditorClass()
Deprecated.Gets theLayerEditor
class, whose instances serve as suitable editor either for instances of theLayer
class returned byLayerEditorDescriptor.getLayerClass()
or for instances of theLayerType
class returned byLayerEditorDescriptor.getLayerTypeClass()
.Class<? extends ExtensionFactory>
getLayerEditorFactoryClass()
Deprecated.Gets theExtensionFactory
class, whose instances serve as suitable editor factory either for instances of theLayer
class returned byLayerEditorDescriptor.getLayerClass()
or for instances of theLayerType
class returned byLayerEditorDescriptor.getLayerTypeClass()
.Class<? extends LayerType>
getLayerTypeClass()
Deprecated.Gets theLayerType
class which is associated directly with aLayerEditor
class or indirectly via aExtensionFactory
class.
-
-
-
Constructor Detail
-
DefaultLayerEditorDescriptor
public DefaultLayerEditorDescriptor()
Deprecated.Constructor used by Ceres runtime for creating a dedicatedConfigurationElement
for thisLayerEditorDescriptor
.
-
-
Method Detail
-
getLayerClass
public Class<? extends Layer> getLayerClass()
Deprecated.Description copied from interface:LayerEditorDescriptor
Gets theLayer
class which is associated directly with aLayerEditor
class or indirectly via aExtensionFactory
class.- Specified by:
getLayerClass
in interfaceLayerEditorDescriptor
- Returns:
- The
LayerType
class. May benull
, if theLayerType
class is given.
-
getLayerTypeClass
public Class<? extends LayerType> getLayerTypeClass()
Deprecated.Description copied from interface:LayerEditorDescriptor
Gets theLayerType
class which is associated directly with aLayerEditor
class or indirectly via aExtensionFactory
class.- Specified by:
getLayerTypeClass
in interfaceLayerEditorDescriptor
- Returns:
- The
LayerType
class. May benull
, if theLayer
class is given.
-
getLayerEditorClass
public Class<? extends LayerEditor> getLayerEditorClass()
Deprecated.Description copied from interface:LayerEditorDescriptor
Gets theLayerEditor
class, whose instances serve as suitable editor either for instances of theLayer
class returned byLayerEditorDescriptor.getLayerClass()
or for instances of theLayerType
class returned byLayerEditorDescriptor.getLayerTypeClass()
.- Specified by:
getLayerEditorClass
in interfaceLayerEditorDescriptor
- Returns:
- The
LayerEditor
class. May benull
, if theExtensionFactory
class is given.
-
getLayerEditorFactoryClass
public Class<? extends ExtensionFactory> getLayerEditorFactoryClass()
Deprecated.Description copied from interface:LayerEditorDescriptor
Gets theExtensionFactory
class, whose instances serve as suitable editor factory either for instances of theLayer
class returned byLayerEditorDescriptor.getLayerClass()
or for instances of theLayerType
class returned byLayerEditorDescriptor.getLayerTypeClass()
.- Specified by:
getLayerEditorFactoryClass
in interfaceLayerEditorDescriptor
- Returns:
- The
LayerEditor
class. May benull
, if theLayerEditor
class is given.
-
configure
public void configure(com.bc.ceres.core.runtime.ConfigurationElement config) throws CoreException
Deprecated.- Specified by:
configure
in interfacecom.bc.ceres.core.runtime.ConfigurableExtension
- Throws:
CoreException
-
createExtensionFactory
protected ExtensionFactory createExtensionFactory()
Deprecated.Creates an extension factory that maps an instances of aLayer
or aLayerType
to an instance of aLayerEditor
.Clients may override in order to provide their own
ExtensionFactory
.- Returns:
- An appropriate extension factory.
-
-