|
deegree 2.5 (2011/06/29 09:44 build-8-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 | |
|---|---|
protected FeatureCollection |
fc
|
| Fields inherited from class org.deegree.graphics.AbstractLayer |
|---|
boundingbox, cs, eventController |
| Constructor Summary | |
|---|---|
protected |
FeatureLayer(java.lang.String name)
creates a layer with EPSG:4326 as default coordinate system |
protected |
FeatureLayer(java.lang.String name,
CoordinateSystem crs)
Creates a new FeatureLayer object. |
protected |
FeatureLayer(java.lang.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(java.lang.String id)
returns the feature that matches the submitted id |
Feature[] |
getFeaturesById(java.lang.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, isValid, removeEventController |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected FeatureCollection fc
| Constructor Detail |
|---|
protected FeatureLayer(java.lang.String name)
throws java.lang.Exception
name - of the feature
java.lang.Exception
protected FeatureLayer(java.lang.String name,
CoordinateSystem crs)
throws java.lang.Exception
name - crs -
java.lang.Exception
protected FeatureLayer(java.lang.String name,
CoordinateSystem crs,
FeatureCollection fc)
throws java.lang.Exception
name - crs - fc -
java.lang.Exception| Method Detail |
|---|
public Feature getFeatureById(java.lang.String id)
id -
public Feature[] getFeaturesById(java.lang.String[] ids)
ids -
public Feature getFeature(int index)
index -
public Feature[] getAllFeatures()
public void addFeature(Feature feature)
throws java.lang.Exception
feature -
java.lang.Exception
public void addFeatureCollection(FeatureCollection featureCollection)
throws java.lang.Exception
featureCollection -
java.lang.Exception
public void removeFeature(Feature feature)
throws java.lang.Exception
feature -
java.lang.Exception
public void removeFeature(int id)
throws java.lang.Exception
id -
java.lang.Exceptionpublic int getSize()
public void setCoordinatesSystem(CoordinateSystem crs)
throws java.lang.Exception
crs -
java.lang.Exception
|
deegree 2.5 (2011/06/29 09:44 build-8-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://www.deegree.org