|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.n52.oxf.layer.AbstractLayer
org.n52.oxf.layer.FeatureLayer
public class FeatureLayer
A layer to paint the given features if no requests to services are needed for updates. This class initializes the feature collection on instantiation and just renders these again and again.
| Field Summary |
|---|
| Fields inherited from class org.n52.oxf.layer.AbstractLayer |
|---|
broken, description, eventSupport, hidden, idName, layerVisualization, parameterContainer, renderer, timeStamp, title |
| Constructor Summary | |
|---|---|
FeatureLayer(String identificationName,
String title,
String layerSourceTitle,
String layerSourceType,
IFeatureDataRenderer renderer,
IFeaturePicker featurePicker,
OXFFeatureCollection collection)
|
|
| Method Summary | |
|---|---|
void |
clearSelection()
|
void |
eventCaught(OXFEvent event)
This method gets called when an OXFEvent is caught. |
IBoundingBox |
getBBox()
|
OXFFeatureCollection |
getFeatureCollection()
|
IFeatureStore |
getFeatureStore()
|
String |
getLayerSourceTitle()
|
String |
getLayerSourceType()
|
IVisualization |
getLayerVisualization()
|
FeatureLayerProcessor |
getProcessor()
|
IFeatureDataRenderer |
getRenderer()
|
Set<OXFFeature> |
getSelectedFeatures()
|
String |
getSrs()
|
Set<OXFFeature> |
pickFeature(int x,
int y)
This method returns a Set of all OXFFeatures of this Layer drawn at screen-position (x, y). |
Set<OXFFeature> |
pickFeature(int llX,
int llY,
int urX,
int urY)
This method returns a Set of all OXFFeatures of this Layer drawn inside the Screen-BoundingBox specified by the lowerLeft-corner (llX, llY) and the upperRight-corner (urX, urY). |
void |
serializeToContext(StringBuffer sb)
serializes the implementing class (downwardly) compatible to the "Web Map Context Documents" Specification (OGC 05-005) of the OGC in version 1.1.0. |
void |
setFeatureCollection(OXFFeatureCollection featureCollection)
sets the actual collection of features. |
void |
setSelectedFeatures(Set<OXFFeature> selectedFeatures)
this method should be primarly be invoked by the method selectFeatures() of the LayerContext class. |
| Methods inherited from class org.n52.oxf.layer.AbstractLayer |
|---|
addEventListener, getDescription, getIDName, getParameterContainer, getTimeStamp, getTitle, isBroken, isHidden, refreshParameterContainer, removeEventListener, setBroken, setHidden, setIDName, setLayerVisualization |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.n52.oxf.layer.IContextLayer |
|---|
getDescription, getIDName, getParameterContainer, getTimeStamp, getTitle, isBroken, isHidden, refreshParameterContainer, setHidden |
| Methods inherited from interface org.n52.oxf.util.IEventEmitter |
|---|
addEventListener, removeEventListener |
| Constructor Detail |
|---|
public FeatureLayer(String identificationName,
String title,
String layerSourceTitle,
String layerSourceType,
IFeatureDataRenderer renderer,
IFeaturePicker featurePicker,
OXFFeatureCollection collection)
| Method Detail |
|---|
public IVisualization getLayerVisualization()
getLayerVisualization in interface IContextLayergetLayerVisualization in class AbstractLayer
public void eventCaught(OXFEvent event)
throws OXFEventException
IEventListener
eventCaught in interface IEventListenereventCaught in class AbstractLayerevent - A OXFEvent object describing the event source and the property that has changed.
OXFEventExceptionpublic FeatureLayerProcessor getProcessor()
getProcessor in class AbstractLayerThread.public void clearSelection()
clearSelection in interface IFeatureLayerpublic OXFFeatureCollection getFeatureCollection()
getFeatureCollection in interface IFeatureLayerpublic IFeatureStore getFeatureStore()
getFeatureStore in interface IFeatureLayerpublic Set<OXFFeature> getSelectedFeatures()
getSelectedFeatures in interface IFeatureLayer
public Set<OXFFeature> pickFeature(int x,
int y)
IFeatureLayer
pickFeature in interface IFeatureLayer
public Set<OXFFeature> pickFeature(int llX,
int llY,
int urX,
int urY)
IFeatureLayer
pickFeature in interface IFeatureLayerpublic void setFeatureCollection(OXFFeatureCollection featureCollection)
IFeatureLayer
setFeatureCollection in interface IFeatureLayerpublic void setSelectedFeatures(Set<OXFFeature> selectedFeatures)
IFeatureLayer
setSelectedFeatures in interface IFeatureLayerpublic IBoundingBox getBBox()
getBBox in interface IContextLayerpublic String getLayerSourceTitle()
getLayerSourceTitle in interface IContextLayerpublic String getLayerSourceType()
getLayerSourceType in interface IContextLayerpublic String getSrs()
getSrs in interface IContextLayerpublic void serializeToContext(StringBuffer sb)
IContextSerializableXML
serializeToContext in interface IContextSerializableXMLpublic IFeatureDataRenderer getRenderer()
getRenderer in interface IContextLayergetRenderer in class AbstractLayer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||