skrueger.geotools
Interface StyledFeaturesInterface<T>

Type Parameters:
T - The base Type returned in the getObject() method.
All Superinterfaces:
StyledLayerInterface<T>
All Known Subinterfaces:
StyledFeatureCollectionInterface, StyledFeatureSourceInterface
All Known Implementing Classes:
StyledFeatureCollection, StyledFS

public interface StyledFeaturesInterface<T>
extends StyledLayerInterface<T>

This Interface combines all styled layers that are running on FeatureCollection or FeatureSource

Author:
Stefan A. Krüger

Method Summary
 AttributeMetadataMap getAttributeMetaDataMap()
           
  getFeatureCollection()
           
  getFeatureCollectionFiltered()
           
  getFeatureSource()
           
 Filter getFilter()
          Returns the Filter a filter that is associated with this StyledFeaturesInterface Never shall return null, but rather Filter.INCLUDE.
 T getGeoObject()
          Returns the underlying GeoTools Object.
 SimpleFeatureType getSchema()
           
 void setFilter(Filter filter)
          Stores Filter that is NOT automatically applied.
 
Methods inherited from interface skrueger.geotools.StyledLayerInterface
dispose, getCrs, getCRSString, getDesc, getEnvelope, getId, getImageIcon, getInfoURL, getKeywords, getStyle, getTitle, isDisposed, setDesc, setImageIcon, setKeywords, setStyle, setTitle, uncache
 

Method Detail

getAttributeMetaDataMap

AttributeMetadataMap getAttributeMetaDataMap()

getFeatureSource

 getFeatureSource()
Returns:
The features of this layer as a FeatureSource. The filter is NOT automatically applied.

getFeatureCollection

 getFeatureCollection()
Returns:
The features of this layer as a FeatureCollection. The filter is NOT automatically applied.

getFeatureCollectionFiltered

 getFeatureCollectionFiltered()
Returns:
The features of this layer as a FeatureCollection. The associated Filter is automatically applied.

setFilter

void setFilter(Filter filter)
Stores Filter that is NOT automatically applied. null is not allowed, use Filter.INCLUDE.


getFilter

Filter getFilter()
Returns the Filter a filter that is associated with this StyledFeaturesInterface Never shall return null, but rather Filter.INCLUDE.


getGeoObject

T getGeoObject()
Returns the underlying GeoTools Object. The filter is NOT applied.

Specified by:
getGeoObject in interface StyledLayerInterface<T>
Throws:
RuntimeException

getSchema

SimpleFeatureType getSchema()
Returns:
As the fastest way to get the Schema is depending on the underlying geoObject (FeatureSource or FeatureCollection), this method shall be implemented in the classes.