Mask
with Mask.BandMathType
instead.@Deprecated public class BitmaskDef extends ProductNode
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_NAME_COLOR
Deprecated.
|
static String |
PROPERTY_NAME_EXPR
Deprecated.
|
static String |
PROPERTY_NAME_TRANSPARENCY
Deprecated.
|
PROPERTY_NAME_DESCRIPTION, PROPERTY_NAME_NAME
Constructor and Description |
---|
BitmaskDef(String name,
String description,
String expr,
Color color,
float transparency)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
acceptVisitor(ProductVisitor visitor)
Deprecated.
Accepts the given visitor.
|
static BitmaskDef |
createBitmaskDef(org.jdom.Element element)
Deprecated.
|
BitmaskDef |
createCopy()
Deprecated.
Creates and returns a copy of this object.
|
Mask |
createMask(int width,
int height)
Deprecated.
|
void |
dispose()
Deprecated.
Releases all of the resources used by this object instance and all of its owned children.
|
boolean |
equals(Object object)
Deprecated.
Returns whether or not this product node equals another object.
|
float |
getAlpha()
Deprecated.
Gets the alpha value of the bitmask, which is
1 - getTransparency() . |
Color |
getColor()
Deprecated.
Returns the color of the bitmask.
|
String |
getExpr()
Deprecated.
Gets the bitmask's boolean expression code.
|
long |
getRawStorageSize(ProductSubsetDef subsetDef)
Deprecated.
Gets the size in bytes of this product node.
|
float |
getTransparency()
Deprecated.
Gets the transparency of the bitmask.
|
void |
setColor(Color color)
Deprecated.
Sets the color of this bitmask definition.
|
void |
setExpr(String expr)
Deprecated.
Sets the boolean flag expression code of this
BitmaskDef instance. |
void |
setTransparency(float transparency)
Deprecated.
Sets the transparency value.
|
void |
updateExpression(String oldExternalName,
String newExternalName)
Deprecated.
Replaces in the expression that this class contains
all occurences of the oldExternalName with the given newExternalName.
|
void |
writeXML(XmlWriter writer,
int indent)
Deprecated.
|
fireProductNodeChanged, fireProductNodeChanged, getDescription, getDisplayName, getName, getOwner, getProduct, getProductReader, getProductReaderSafe, getProductRefString, getProductSafe, getProductWriter, getProductWriterSafe, getRawStorageSize, isModified, isPartOfSubset, isValidNodeName, removeFromFile, setDescription, setModified, setName, setOwner, toString
public static final String PROPERTY_NAME_COLOR
public static final String PROPERTY_NAME_EXPR
public static final String PROPERTY_NAME_TRANSPARENCY
public String getExpr()
Term
use createTerm(getExpr())
.public void setExpr(String expr)
BitmaskDef
instance. Also sets the term
property if the given string representation of the expression can be compiled.expr
- the string representation of the expressionIllegalArgumentException
- if the expression is invalid (and not parsable)public void updateExpression(String oldExternalName, String newExternalName)
updateExpression
in class ProductNode
oldExternalName
- newExternalName
- public Color getColor()
public void setColor(Color color)
null
the default color is set to this bitmask definition.color
- the color to be setpublic float getAlpha()
1 - getTransparency()
.public float getTransparency()
public void setTransparency(float transparency)
0.0F
to 1.0F
.transparency
- the transparency valueIllegalArgumentException
- if the given transparency value is out of range.public void acceptVisitor(ProductVisitor visitor)
acceptVisitor
in class ProductNode
visitor
- the visitorpublic boolean equals(Object object)
public BitmaskDef createCopy()
public long getRawStorageSize(ProductSubsetDef subsetDef)
getRawStorageSize
in class ProductNode
subsetDef
- if not null
the subset may limit the size returnedpublic void writeXML(XmlWriter writer, int indent)
public static BitmaskDef createBitmaskDef(org.jdom.Element element)
public void dispose()
This method should be called only if it is for sure that this object instance will never be used again. The
results of referencing an instance of this class after a call to dispose()
are undefined.
Overrides of this method should always call super.dispose();
after disposing this instance.
dispose
in class ProductNode
public Mask createMask(int width, int height)
Copyright © 2002–2014 Brockmann Consult GmbH. All rights reserved.