|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.graphics.Layer_Impl
org.deegree_impl.graphics.FeatureLayer_Impl
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 GM_Envelope |
boundingbox
|
protected CoordinateSystem |
crs
|
protected CS_CoordinateSystem |
cs
|
protected java.util.List |
eventController
|
protected FeatureCollection |
fc
|
Constructor Summary | |
(package private) |
FeatureLayer_Impl(java.lang.String name)
creates a layer with EPSG:4326 as default coordinate system |
(package private) |
FeatureLayer_Impl(java.lang.String name,
CS_CoordinateSystem crs)
Creates a new FeatureLayer_Impl object. |
(package private) |
FeatureLayer_Impl(java.lang.String name,
CS_CoordinateSystem crs,
FeatureCollection fc)
Creates a new Layer_Impl object. |
Method Summary | |
void |
addEventController(LayerEventController obj)
adds an eventcontroller to the MapView that's reponsible for handling events that targets the map. |
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 |
GM_Envelope |
getBoundingBox()
returns the BoundingBox (Envelope) of Layer. |
CS_CoordinateSystem |
getCoordinatesSystem()
returns the coordinate reference system of the MapView |
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 |
java.lang.String |
getName()
returns the name of the layer |
int |
getSize()
returns the amount of features within the layer. |
private void |
init(FeatureCollection feature)
initializes serveral parameters of the layer and homogenizes the coordinate reference systems of the features |
private void |
recalculateBoundingbox()
|
void |
removeEventController(LayerEventController obj)
|
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(CS_CoordinateSystem crs)
sets the coordinate reference system of the MapView. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.deegree.graphics.Layer |
addEventController, getBoundingBox, getCoordinatesSystem, getName, removeEventController |
Field Detail |
protected FeatureCollection fc
protected CS_CoordinateSystem cs
protected CoordinateSystem crs
protected GM_Envelope boundingbox
protected java.util.List eventController
Constructor Detail |
FeatureLayer_Impl(java.lang.String name) throws java.lang.Exception
FeatureLayer_Impl(java.lang.String name, CS_CoordinateSystem crs) throws java.lang.Exception
name
- crs
-
java.lang.Exception
FeatureLayer_Impl(java.lang.String name, CS_CoordinateSystem crs, FeatureCollection fc) throws java.lang.Exception
name
- crs
- fc
-
java.lang.Exception
Method Detail |
private void init(FeatureCollection feature) throws java.lang.Exception
java.lang.Exception
private void recalculateBoundingbox()
public Feature getFeatureById(java.lang.String id)
getFeatureById
in interface FeatureLayer
public Feature[] getFeaturesById(java.lang.String[] ids)
getFeaturesById
in interface FeatureLayer
public Feature getFeature(int index)
getFeature
in interface FeatureLayer
public Feature[] getAllFeatures()
getAllFeatures
in interface FeatureLayer
public void addFeature(Feature feature) throws java.lang.Exception
addFeature
in interface FeatureLayer
java.lang.Exception
public void addFeatureCollection(FeatureCollection featureCollection) throws java.lang.Exception
addFeatureCollection
in interface FeatureLayer
java.lang.Exception
public void removeFeature(Feature feature) throws java.lang.Exception
removeFeature
in interface FeatureLayer
java.lang.Exception
public void removeFeature(int id) throws java.lang.Exception
removeFeature
in interface FeatureLayer
java.lang.Exception
public int getSize()
getSize
in interface FeatureLayer
public void setCoordinatesSystem(CS_CoordinateSystem crs) throws java.lang.Exception
setCoordinatesSystem
in interface Layer
java.lang.Exception
public java.lang.String getName()
getName
in interface Layer
public GM_Envelope getBoundingBox()
getBoundingBox
in interface Layer
public CS_CoordinateSystem getCoordinatesSystem()
getCoordinatesSystem
in interface Layer
public void addEventController(LayerEventController obj)
addEventController
in interface Layer
public void removeEventController(LayerEventController obj)
removeEventController
in interface Layer
Layer_Impl.addEventController(LayerEventController)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |