Class MaskLayerType

All Implemented Interfaces:
Extensible

@LayerTypeMetadata(name="MaskLayerType", aliasNames="org.esa.snap.core.layer.MaskLayerType") public class MaskLayerType extends ImageLayer.Type
A layer used to display Masks.
Since:
BEAM 4.7
Version:
$ Revision: $ Date: $
  • Field Details

  • Constructor Details

    • MaskLayerType

      public MaskLayerType()
  • Method Details

    • createLayer

      public static Layer createLayer(RasterDataNode raster, Mask mask)
    • 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 class ImageLayer.Type
      Parameters:
      ctx - An application provided context, may be null. The parameter may be ignored by many layer types.
      configuration - The layer configuration.
      Returns:
      A new layer instance.
    • createMultiLevelSource

      public static MultiLevelSource createMultiLevelSource(PropertySet configuration)
    • createMultiLevelSource

      public static MultiLevelSource createMultiLevelSource(Mask mask)
    • 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 the LayerType.createLayer(com.bc.ceres.glayer.LayerContext, com.bc.ceres.binding.PropertySet) method in order to create a new layer instance.
      Overrides:
      createLayerConfig in class ImageLayer.Type
      Parameters:
      ctx - An application provided context, may be null. The parameter may be ignored by many layer types.
      Returns:
      A new layer (default) configuration.