|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bc.ceres.core.ExtensibleObject
org.esa.beam.framework.datamodel.ProductNode
org.esa.beam.framework.datamodel.VectorDataNode
public class VectorDataNode
A container which allows to store vector data in the BEAM product model.
This is a preliminary API under construction for BEAM 4.7. Not intended for public use.
Product.getVectorDataGroup()| Field Summary | |
|---|---|
static String |
PROPERTY_NAME_DEFAULT_STYLE_CSS
|
static String |
PROPERTY_NAME_FEATURE_COLLECTION
|
static String |
PROPERTY_NAME_STYLE_CSS
|
| Fields inherited from class org.esa.beam.framework.datamodel.ProductNode |
|---|
PROPERTY_NAME_DESCRIPTION, PROPERTY_NAME_NAME |
| Constructor Summary | |
|---|---|
VectorDataNode(String name,
org.geotools.feature.FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> featureCollection)
Constructs a new vector data node for the given feature collection. |
|
VectorDataNode(String name,
org.geotools.feature.FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> featureCollection,
PlacemarkDescriptor placemarkDescriptor)
Constructs a new vector data node for the given feature collection. |
|
VectorDataNode(String name,
org.opengis.feature.simple.SimpleFeatureType featureType)
Constructs a new vector data node for the given feature collection. |
|
| Method Summary | |
|---|---|
void |
acceptVisitor(ProductVisitor visitor)
Accepts the given visitor. |
void |
dispose()
Releases all of the resources used by this object instance and all of its owned children. |
void |
fireFeaturesAdded(org.opengis.feature.simple.SimpleFeature... features)
Informs clients which have registered a ProductNodeListener with the Product
containing this VectorDataNode, that one or more OpenGIS SimpleFeatures have
been added to the underlying FeatureCollection. |
void |
fireFeaturesChanged(org.opengis.feature.simple.SimpleFeature... features)
Informs clients which have registered a ProductNodeListener with the Product
containing this VectorDataNode, that one or more OpenGIS SimpleFeatures from
from the underlying FeatureCollection have been changed. |
void |
fireFeaturesRemoved(org.opengis.feature.simple.SimpleFeature... features)
Informs clients which have registered a ProductNodeListener with the Product
containing this VectorDataNode, that one or more OpenGIS SimpleFeatures have
been removed from the underlying FeatureCollection. |
String |
getDefaultCSS()
Deprecated. since BEAM 4.10, use getDefaultStyleCss() |
String |
getDefaultStyleCss()
|
org.geotools.geometry.jts.ReferencedEnvelope |
getEnvelope()
Gets the bounding box for the features in this feature collection. |
org.geotools.feature.FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> |
getFeatureCollection()
|
org.opengis.feature.simple.SimpleFeatureType |
getFeatureType()
|
PlacemarkDescriptor |
getPlacemarkDescriptor()
|
PlacemarkGroup |
getPlacemarkGroup()
|
long |
getRawStorageSize(ProductSubsetDef subsetDef)
Gets an estimated, raw storage size in bytes of this product node. |
String |
getStyleCss()
|
boolean |
isInternalNode()
Deprecated. Since BEAM 4.10. No use. |
boolean |
isPermanent()
Internal API. |
void |
setDefaultCSS(String defaultCSS)
Deprecated. since BEAM 4.10, use setDefaultStyleCss() |
void |
setDefaultStyleCss(String defaultStyleCss)
|
void |
setModified(boolean modified)
Sets this node's modified flag. |
protected void |
setOwner(ProductNode owner)
Called when this node is added to or removed from a product. |
void |
setPermanent(boolean permanent)
Internal API. |
void |
setStyleCss(String styleCss)
|
| Methods inherited from class org.esa.beam.framework.datamodel.ProductNode |
|---|
fireProductNodeChanged, fireProductNodeChanged, getDescription, getDisplayName, getName, getOwner, getProduct, getProductReader, getProductReaderSafe, getProductRefString, getProductSafe, getProductWriter, getProductWriterSafe, getRawStorageSize, isModified, isPartOfSubset, isValidNodeName, removeFromFile, setDescription, setName, toString, updateExpression |
| Methods inherited from class com.bc.ceres.core.ExtensibleObject |
|---|
getExtension |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String PROPERTY_NAME_FEATURE_COLLECTION
public static final String PROPERTY_NAME_STYLE_CSS
public static final String PROPERTY_NAME_DEFAULT_STYLE_CSS
| Constructor Detail |
|---|
public VectorDataNode(String name,
org.opengis.feature.simple.SimpleFeatureType featureType)
name - The node name.featureType - The feature type.
IllegalArgumentException - if the given name is not a valid node identifier
public VectorDataNode(String name,
org.geotools.feature.FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> featureCollection)
name - The node name.featureCollection - A feature collection.
IllegalArgumentException - if the given name is not a valid node identifier
public VectorDataNode(String name,
org.geotools.feature.FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> featureCollection,
PlacemarkDescriptor placemarkDescriptor)
name - The node name.featureCollection - A feature collection.placemarkDescriptor - The placemark descriptor
IllegalArgumentException - if the given name is not a valid node identifier| Method Detail |
|---|
protected void setOwner(ProductNode owner)
setOwner in class ProductNodeowner - the new ownerpublic PlacemarkDescriptor getPlacemarkDescriptor()
public PlacemarkGroup getPlacemarkGroup()
public void setModified(boolean modified)
ProductNode
setModified in class ProductNodemodified - whether or not this node is beeing marked as modified.Product.fireNodeChanged(org.esa.beam.framework.datamodel.ProductNode, java.lang.String, java.lang.Object, java.lang.Object)public void fireFeaturesAdded(org.opengis.feature.simple.SimpleFeature... features)
ProductNodeListener with the Product
containing this VectorDataNode, that one or more OpenGIS SimpleFeatures have
been added to the underlying FeatureCollection.
The method fires a product node property change event, where the propertyName
is PROPERTY_NAME_FEATURE_COLLECTION, the oldValue is null, and
the newValue is the array of features added.
features - The feature(s) added.public void fireFeaturesRemoved(org.opengis.feature.simple.SimpleFeature... features)
ProductNodeListener with the Product
containing this VectorDataNode, that one or more OpenGIS SimpleFeatures have
been removed from the underlying FeatureCollection.
The method fires a product node property change event, where the propertyName
is PROPERTY_NAME_FEATURE_COLLECTION, the oldValue is the array of features
removed, and the newValue is null.
features - The feature(s) removed.public void fireFeaturesChanged(org.opengis.feature.simple.SimpleFeature... features)
ProductNodeListener with the Product
containing this VectorDataNode, that one or more OpenGIS SimpleFeatures from
from the underlying FeatureCollection have been changed.
The method fires a product node property change event, where the propertyName
is PROPERTY_NAME_FEATURE_COLLECTION, and both oldValue and newValue
are the same array of features changed.
features - The feature(s) changed.public org.opengis.feature.simple.SimpleFeatureType getFeatureType()
public org.geotools.feature.FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> getFeatureCollection()
public org.geotools.geometry.jts.ReferencedEnvelope getEnvelope()
public long getRawStorageSize(ProductSubsetDef subsetDef)
ProductNode
getRawStorageSize in class ProductNodesubsetDef - if not null the subset may limit the size returned
public String getDefaultStyleCss()
public void setDefaultStyleCss(String defaultStyleCss)
public String getStyleCss()
public void setStyleCss(String styleCss)
public void acceptVisitor(ProductVisitor visitor)
ProductNode
acceptVisitor in class ProductNodevisitor - the visitorpublic 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@Deprecated public boolean isInternalNode()
@Deprecated public String getDefaultCSS()
@Deprecated public void setDefaultCSS(String defaultCSS)
public boolean isPermanent()
public void setPermanent(boolean permanent)
permanent - If true, prevents this node from being removed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||