| 
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.graphics.AbstractLayer
org.deegree.graphics.FeatureLayer
public class FeatureLayer
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.
| Field Summary | 
|---|
| Fields inherited from class org.deegree.graphics.AbstractLayer | 
|---|
boundingbox, cs, eventController | 
| Constructor Summary | |
|---|---|
FeatureLayer(String name)
creates a layer with EPSG:4326 as default coordinate system  | 
|
FeatureLayer(String name,
                         CoordinateSystem crs)
Creates a new FeatureLayer object.  | 
|
FeatureLayer(String name,
                         CoordinateSystem crs,
                         FeatureCollection fc)
Creates a new AbstractLayer object.  | 
|
| 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 index  | 
 Feature | 
getFeatureById(String id)
returns the feature that matches the submitted id  | 
 Feature[] | 
getFeaturesById(String[] ids)
returns the feature that matches the submitted id  | 
 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  | 
 void | 
setCoordinatesSystem(CoordinateSystem crs)
sets the coordinate reference system of the MapView.  | 
| Methods inherited from class org.deegree.graphics.AbstractLayer | 
|---|
addEventController, getBoundingBox, getCoordinatesSystem, getName, removeEventController | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
FeatureLayer(String name)
       throws Exception
Exception
FeatureLayer(String name,
             CoordinateSystem crs)
       throws Exception
name - crs - 
Exception
FeatureLayer(String name,
             CoordinateSystem crs,
             FeatureCollection fc)
       throws Exception
name - crs - fc - 
Exception| Method Detail | 
|---|
public Feature getFeatureById(String id)
id - 
public Feature[] getFeaturesById(String[] ids)
ids - 
public Feature getFeature(int index)
index - 
public Feature[] getAllFeatures()
public void addFeature(Feature feature)
                throws Exception
feature - 
Exception
public void addFeatureCollection(FeatureCollection featureCollection)
                          throws Exception
featureCollection - 
Exception
public void removeFeature(Feature feature)
                   throws Exception
feature - 
Exception
public void removeFeature(int id)
                   throws Exception
id - 
Exceptionpublic int getSize()
public void setCoordinatesSystem(CoordinateSystem crs)
                          throws Exception
crs - 
Exception
  | 
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
					For more information visit: http://deegree.sourceforge.net