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)
FeatureLayer
addFeature
in interface FeatureLayer
public Feature getFeature(long featureId)
FeatureLayer
getFeature
in interface FeatureLayer
public Feature[] getFeatures()
FeatureLayer
getFeatures
in interface FeatureLayer
public Feature[] getFeaturesOnNode(long nodeId)
FeatureLayer
getFeaturesOnNode
in interface FeatureLayer
nodeId
- ID of the nodepublic Feature[] getFeaturesOnLink(long linkId)
FeatureLayer
getFeaturesOnLink
in interface FeatureLayer
linkId
- ID of the linkpublic long[] getFeatureIds()
FeatureLayer
getFeatureIds
in interface FeatureLayer