Package org.esa.snap.core.datamodel
Class PlacemarkGroup
- java.lang.Object
-
- com.bc.ceres.core.ExtensibleObject
-
- org.esa.snap.core.datamodel.ProductNode
-
- org.esa.snap.core.datamodel.ProductNodeGroup<Placemark>
-
- org.esa.snap.core.datamodel.PlacemarkGroup
-
- All Implemented Interfaces:
Extensible
public class PlacemarkGroup extends ProductNodeGroup<Placemark>
-
-
Field Summary
-
Fields inherited from class org.esa.snap.core.datamodel.ProductNode
PROPERTY_NAME_DESCRIPTION, PROPERTY_NAME_NAME
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, Placemark placemark)
Adds the given node to this group.boolean
add(Placemark placemark)
Adds the given node to this group.void
dispose()
Releases all of the resources used by this object instance and all of its owned children.Placemark
getPlacemark(org.opengis.feature.simple.SimpleFeature feature)
VectorDataNode
getVectorDataNode()
boolean
remove(Placemark placemark)
Removes the given node from this group.-
Methods inherited from class org.esa.snap.core.datamodel.ProductNodeGroup
acceptVisitor, clearRemovedList, contains, contains, get, get, getByDisplayName, getNodeCount, getNodeDisplayNames, getNodeNames, getRawStorageSize, getRemovedNodes, indexOf, indexOf, isTakingOverNodeOwnership, removeAll, setModified, toArray, toArray, updateExpression
-
Methods inherited from class org.esa.snap.core.datamodel.ProductNode
fireProductNodeChanged, fireProductNodeChanged, getDescription, getDisplayName, getName, getOwner, getProduct, getProductReader, getProductReaderSafe, getProductRefString, getProductSafe, getProductWriter, getProductWriterSafe, getRawStorageSize, isModified, isPartOfSubset, isValidNodeName, removeFromFile, setDescription, setName, setNodeName, setOwner, toString
-
Methods inherited from class com.bc.ceres.core.ExtensibleObject
getExtension
-
-
-
-
Method Detail
-
getVectorDataNode
public VectorDataNode getVectorDataNode()
-
getPlacemark
public final Placemark getPlacemark(org.opengis.feature.simple.SimpleFeature feature)
-
add
public boolean add(Placemark placemark)
Description copied from class:ProductNodeGroup
Adds the given node to this group.- Overrides:
add
in classProductNodeGroup<Placemark>
- Parameters:
placemark
- the node to be added, ignored ifnull
- Returns:
- true, if the node has been added
-
add
public void add(int index, Placemark placemark)
Description copied from class:ProductNodeGroup
Adds the given node to this group.- Overrides:
add
in classProductNodeGroup<Placemark>
- Parameters:
index
- the index.placemark
- the node to be added, ignored ifnull
-
remove
public boolean remove(Placemark placemark)
Description copied from class:ProductNodeGroup
Removes the given node from this group.- Overrides:
remove
in classProductNodeGroup<Placemark>
- Parameters:
placemark
- the node to be removed- Returns:
- true, if the node was removed
-
dispose
public void dispose()
Description copied from class:ProductNode
Releases all of the resources used by this object instance and all of its owned children. Its primary use is to allow the garbage collector to perform a vanilla job.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.- Overrides:
dispose
in classProductNodeGroup<Placemark>
-
-