Package org.esa.snap.core.datamodel
Class Mask.ImageType
- java.lang.Object
-
- org.esa.snap.core.datamodel.Mask.ImageType
-
- Direct Known Subclasses:
Mask.BandMathsType
,Mask.RangeType
,Mask.VectorDataType
- Enclosing class:
- Mask
public abstract static class Mask.ImageType extends Object
Specifies a factory for thesource image
used by aMask
.
-
-
Field Summary
Fields Modifier and Type Field Description static Color
DEFAULT_COLOR
static double
DEFAULT_TRANSPARENCY
static String
PROPERTY_NAME_COLOR
static String
PROPERTY_NAME_TRANSPARENCY
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
canTransferMask(Mask mask, Product product)
abstract MultiLevelImage
createImage(Mask mask)
Creates the mask's source image.PropertyContainer
createImageConfig()
Creates a prototype image configuration.String
getName()
void
handleRename(Mask mask, String oldExternalName, String newExternalName)
Mask
transferMask(Mask mask, Product product)
-
-
-
Field Detail
-
PROPERTY_NAME_COLOR
public static final String PROPERTY_NAME_COLOR
- See Also:
- Constant Field Values
-
PROPERTY_NAME_TRANSPARENCY
public static final String PROPERTY_NAME_TRANSPARENCY
- See Also:
- Constant Field Values
-
DEFAULT_COLOR
public static final Color DEFAULT_COLOR
-
DEFAULT_TRANSPARENCY
public static final double DEFAULT_TRANSPARENCY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ImageType
protected ImageType(String name)
-
-
Method Detail
-
createImage
public abstract MultiLevelImage createImage(Mask mask)
Creates the mask's source image.- Parameters:
mask
- The mask which requests creation of its source image.- Returns:
- The image.
-
createImageConfig
public PropertyContainer createImageConfig()
Creates a prototype image configuration.- Returns:
- The image configuration.
-
getName
public String getName()
-
-