org.deegree.graphics
Interface FeatureLayer

All Superinterfaces:
Layer
All Known Implementing Classes:
FeatureLayer_Impl

public interface FeatureLayer
extends Layer

A Layer is a collection of Features building a thematic 'unit' waterways or country borders for example. Features can be added or removed from the layer. A Feature can e changed by a modul of the application using the layer because only references to Features are stored within a layer.

------------------------------------------------------------------------

Version:
$Revision: 1.3 $ $Date: 2004/02/09 07:57:01 $
Author:
Andreas Poth

Method Summary
 void addFeature(Feature feature)
          adds a feature to the layer
 void addFeatureCollection(FeatureCollection featureCollection)
          adds a feature collection to the layer
 Feature[] getAllFeatures()
          returns all features
 Feature getFeature(int index)
          returns the feature that matches the submitted id
 Feature getFeatureById(java.lang.String id)
          returns the feature that matches the submitted id
 Feature[] getFeaturesById(java.lang.String[] id)
          returns all features that matches the submitted ids
 int getSize()
          returns the amount of features within the layer.
 void removeFeature(Feature feature)
          removes a display Element from the layer
 void removeFeature(int id)
          removes the display Element from the layer that matches the submitted id
 
Methods inherited from interface org.deegree.graphics.Layer
addEventController, getBoundingBox, getCoordinatesSystem, getName, removeEventController, setCoordinatesSystem
 

Method Detail

getFeatureById

public Feature getFeatureById(java.lang.String id)
returns the feature that matches the submitted id


getFeaturesById

public Feature[] getFeaturesById(java.lang.String[] id)
returns all features that matches the submitted ids


getFeature

public Feature getFeature(int index)
returns the feature that matches the submitted id


getAllFeatures

public Feature[] getAllFeatures()
returns all features


addFeature

public void addFeature(Feature feature)
                throws java.lang.Exception
adds a feature to the layer

Throws:
java.lang.Exception

addFeatureCollection

public void addFeatureCollection(FeatureCollection featureCollection)
                          throws java.lang.Exception
adds a feature collection to the layer

Throws:
java.lang.Exception

removeFeature

public void removeFeature(Feature feature)
                   throws java.lang.Exception
removes a display Element from the layer

Throws:
java.lang.Exception

removeFeature

public void removeFeature(int id)
                   throws java.lang.Exception
removes the display Element from the layer that matches the submitted id

Throws:
java.lang.Exception

getSize

public int getSize()
returns the amount of features within the layer.