Package org.esa.snap.rcp.layermanager
Class LayerManager
- java.lang.Object
-
- org.esa.snap.rcp.layermanager.LayerManager
-
public class LayerManager extends Object
Either 'editor' or 'editorFactory' must be given:- 'editor' must be a
LayerEditor
- 'editorFactory' must be a
com.bc.ceres.core.ExtensionFactory
that produces instances ofLayerEditor
.
<editor field="layerEditorClass" type="java.lang.Class"/> <editorFactory field="layerEditorFactoryClass" type="java.lang.Class"/>
At least 'layer' or 'layerType' must be given:- 'layer' must be a
com.bc.ceres.glayer.Layer
- 'layerType' must be a
com.bc.ceres.glayer.LayerType
.
<layer field="layerClass" type="java.lang.Class"/> <layerType field="layerTypeClass" type="java.lang.Class"/>
- 'editor' must be a
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LayerManager.Runner
-
Constructor Summary
Constructors Modifier Constructor Description protected
LayerManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DefaultLayerSourceDescriptor
createLayerSourceDescriptor(org.openide.filesystems.FileObject fileObject)
static <T> Class<T>
getClassAttribute(org.openide.filesystems.FileObject fileObject, String attributeName, Class<T> expectedType, boolean required)
static LayerManager
getDefault()
Map<String,LayerSourceDescriptor>
getLayerSourceDescriptors()
static void
registerLayerEditorDescriptor(org.openide.filesystems.FileObject fileObject)
-
-
-
Field Detail
-
LOG
public static final Logger LOG
-
-
Method Detail
-
getDefault
public static LayerManager getDefault()
-
getLayerSourceDescriptors
public Map<String,LayerSourceDescriptor> getLayerSourceDescriptors()
-
createLayerSourceDescriptor
public static DefaultLayerSourceDescriptor createLayerSourceDescriptor(org.openide.filesystems.FileObject fileObject)
-
registerLayerEditorDescriptor
public static void registerLayerEditorDescriptor(org.openide.filesystems.FileObject fileObject) throws Exception
- Throws:
Exception
-
-