public class FeatureLayerImpl extends java.lang.Object implements FeatureLayer
| Constructor and Description |
|---|
FeatureLayerImpl()
Constructs a FeatureLayer instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFeature(Feature feature)
Adds a feature to the feature layer.
|
Feature |
getFeature(long featureId)
Returns the feature with the input feature ID.
|
long[] |
getFeatureIds()
Returns all the feature IDs in this feature layer.
|
Feature[] |
getFeatures()
Returns all the features in this feature layer.
|
Feature[] |
getFeaturesOnLink(long linkId)
Returns the features associated with the input link.
|
Feature[] |
getFeaturesOnNode(long nodeId)
Returns the features associated with the input node.
|
public void addFeature(Feature feature)
FeatureLayeraddFeature in interface FeatureLayerpublic Feature getFeature(long featureId)
FeatureLayergetFeature in interface FeatureLayerpublic Feature[] getFeatures()
FeatureLayergetFeatures in interface FeatureLayerpublic Feature[] getFeaturesOnNode(long nodeId)
FeatureLayergetFeaturesOnNode in interface FeatureLayernodeId - ID of the nodepublic Feature[] getFeaturesOnLink(long linkId)
FeatureLayergetFeaturesOnLink in interface FeatureLayerlinkId - ID of the linkpublic long[] getFeatureIds()
FeatureLayergetFeatureIds in interface FeatureLayer