|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
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.
------------------------------------------------------------------------
| 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 |
public Feature getFeatureById(java.lang.String id)
public Feature[] getFeaturesById(java.lang.String[] id)
public Feature getFeature(int index)
public Feature[] getAllFeatures()
public void addFeature(Feature feature)
throws java.lang.Exception
java.lang.Exception
public void addFeatureCollection(FeatureCollection featureCollection)
throws java.lang.Exception
java.lang.Exception
public void removeFeature(Feature feature)
throws java.lang.Exception
java.lang.Exception
public void removeFeature(int id)
throws java.lang.Exception
java.lang.Exceptionpublic int getSize()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||