org.esa.beam.framework.datamodel
Class Mask.BandMathsType
java.lang.Object
org.esa.beam.framework.datamodel.Mask.ImageType
org.esa.beam.framework.datamodel.Mask.BandMathsType
- Enclosing class:
- Mask
public static class Mask.BandMathsType
- extends Mask.ImageType
A mask image type which is based on band math.
|
Method Summary |
boolean |
canTransferMask(Mask mask,
Product product)
|
static Mask |
create(String name,
String description,
int width,
int height,
String expression,
Color color,
double transparency)
|
static Mask |
createFromBitmaskDef(org.jdom.Element element,
int width,
int height)
Used to read in Mask from legacy "BitmaskDef" format |
com.bc.ceres.glevel.MultiLevelImage |
createImage(Mask mask)
Creates the image. |
com.bc.ceres.binding.PropertyContainer |
createImageConfig()
Creates a prototype image configuration. |
static String |
getExpression(Mask mask)
|
void |
handleRename(Mask mask,
String oldExternalName,
String newExternalName)
|
static void |
setExpression(Mask mask,
String expression)
|
Mask |
transferMask(Mask mask,
Product product)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TYPE_NAME
public static final String TYPE_NAME
- See Also:
- Constant Field Values
PROPERTY_NAME_EXPRESSION
public static final String PROPERTY_NAME_EXPRESSION
- See Also:
- Constant Field Values
INSTANCE
public static final Mask.BandMathsType INSTANCE
createImage
public com.bc.ceres.glevel.MultiLevelImage createImage(Mask mask)
- Creates the image.
- Specified by:
createImage in class Mask.ImageType
- Parameters:
mask - The mask which requests creation of its image.
- Returns:
- The image.
canTransferMask
public boolean canTransferMask(Mask mask,
Product product)
- Overrides:
canTransferMask in class Mask.ImageType
transferMask
public Mask transferMask(Mask mask,
Product product)
- Overrides:
transferMask in class Mask.ImageType
createImageConfig
public com.bc.ceres.binding.PropertyContainer createImageConfig()
- Creates a prototype image configuration.
- Overrides:
createImageConfig in class Mask.ImageType
- Returns:
- The image configuration.
handleRename
public void handleRename(Mask mask,
String oldExternalName,
String newExternalName)
- Overrides:
handleRename in class Mask.ImageType
setExpression
public static void setExpression(Mask mask,
String expression)
getExpression
public static String getExpression(Mask mask)
create
public static Mask create(String name,
String description,
int width,
int height,
String expression,
Color color,
double transparency)
createFromBitmaskDef
public static Mask createFromBitmaskDef(org.jdom.Element element,
int width,
int height)
- Used to read in Mask from legacy "BitmaskDef" format
- Parameters:
element - A DOM elementwidth - The width of the maskheight - The height of the mask
- Returns:
- a mask
Copyright © 2002-2013 Brockmann Consult GmbH. All Rights Reserved.