Package org.esa.snap.core.layer
Class NoDataLayerType
- java.lang.Object
-
- com.bc.ceres.core.ExtensibleObject
-
- com.bc.ceres.glayer.LayerType
-
- com.bc.ceres.glayer.support.ImageLayer.Type
-
- org.esa.snap.core.layer.NoDataLayerType
-
- All Implemented Interfaces:
Extensible
@LayerTypeMetadata(name="NoDataLayerType", aliasNames="org.esa.snap.core.layer.NoDataLayerType") public class NoDataLayerType extends ImageLayer.Type
A layer used to display the no-data mask of a raster data node.- Since:
- BEAM 4.6
- Version:
- $ Revision: $ Date: $
-
-
Field Summary
Fields Modifier and Type Field Description static Color
DEFAULT_COLOR
static String
NO_DATA_LAYER_ID
static String
PROPERTY_NAME_COLOR
static String
PROPERTY_NAME_RASTER
-
Constructor Summary
Constructors Constructor Description NoDataLayerType()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Layer
createLayer(LayerContext ctx, PropertySet configuration)
Creates a layer instance for the given application provided context and the given layer configuration.PropertySet
createLayerConfig(LayerContext ctx)
Creates a default configuration instance for the type of layers this type can create.static void
renewMultiLevelSource(ImageLayer layer, Color newColor)
-
Methods inherited from class com.bc.ceres.glayer.support.ImageLayer.Type
isValidFor
-
Methods inherited from class com.bc.ceres.glayer.LayerType
createWithSceneView, getAliases, getName
-
Methods inherited from class com.bc.ceres.core.ExtensibleObject
getExtension
-
-
-
-
Field Detail
-
NO_DATA_LAYER_ID
public static final String NO_DATA_LAYER_ID
- See Also:
- Constant Field Values
-
PROPERTY_NAME_COLOR
public static final String PROPERTY_NAME_COLOR
- See Also:
- Constant Field Values
-
PROPERTY_NAME_RASTER
public static final String PROPERTY_NAME_RASTER
- See Also:
- Constant Field Values
-
DEFAULT_COLOR
public static final Color DEFAULT_COLOR
-
-
Method Detail
-
createLayer
public Layer createLayer(LayerContext ctx, PropertySet configuration)
Description copied from class:LayerType
Creates a layer instance for the given application provided context and the given layer configuration. The configuration may contain both, inmutable construction parameters passed to specific layer constructor as well as mutable layer properties.- Overrides:
createLayer
in classImageLayer.Type
- Parameters:
ctx
- An application provided context, may benull
. The parameter may be ignored by many layer types.configuration
- The layer configuration.- Returns:
- A new layer instance.
-
createLayerConfig
public PropertySet createLayerConfig(LayerContext ctx)
Description copied from class:LayerType
Creates a default configuration instance for the type of layers this type can create. After a default configuration has been created it is usually modified to specify a layer's construction parameters, e.g. for an image layer this could be the file path to the image file. Then, an application will pass the configuration to theLayerType.createLayer(com.bc.ceres.glayer.LayerContext, com.bc.ceres.binding.PropertySet)
method in order to create a new layer instance.- Overrides:
createLayerConfig
in classImageLayer.Type
- Parameters:
ctx
- An application provided context, may benull
. The parameter may be ignored by many layer types.- Returns:
- A new layer (default) configuration.
-
renewMultiLevelSource
public static void renewMultiLevelSource(ImageLayer layer, Color newColor)
-
-