2 |
* Copyright (c) 2009 Martin O. J. Schmitz. |
* Copyright (c) 2009 Martin O. J. Schmitz. |
3 |
* |
* |
4 |
* This file is part of the SCHMITZM library - a collection of utility |
* This file is part of the SCHMITZM library - a collection of utility |
5 |
* classes based on Java 1.6, focussing (not only) on Java Swing |
* classes based on Java 1.6, focusing (not only) on Java Swing |
6 |
* and the Geotools library. |
* and the Geotools library. |
7 |
* |
* |
8 |
* The SCHMITZM project is hosted at: |
* The SCHMITZM project is hosted at: |
29 |
******************************************************************************/ |
******************************************************************************/ |
30 |
package skrueger.geotools; |
package skrueger.geotools; |
31 |
|
|
|
import java.util.Map; |
|
|
|
|
32 |
import org.geotools.data.FeatureSource; |
import org.geotools.data.FeatureSource; |
33 |
import org.geotools.feature.FeatureCollection; |
import org.geotools.feature.FeatureCollection; |
34 |
|
import org.opengis.feature.simple.SimpleFeature; |
35 |
import skrueger.AttributeMetaData; |
import org.opengis.feature.simple.SimpleFeatureType; |
36 |
|
|
37 |
/** |
/** |
38 |
* This Interface combines all styled layers that are running on |
* This Interface combines all styled layers that are running on |
45 |
*/ |
*/ |
46 |
public interface StyledFeaturesInterface<T> extends StyledLayerInterface<T> { |
public interface StyledFeaturesInterface<T> extends StyledLayerInterface<T> { |
47 |
|
|
48 |
public abstract Map<Integer, AttributeMetaData> getAttributeMetaDataMap(); |
public abstract AttributeMetadataMap getAttributeMetaDataMap(); |
49 |
|
|
50 |
/** |
/** |
51 |
* @return The features of this layer as a {@link FeatureSource}. |
* @return The features of this layer as a {@link FeatureSource}. |
52 |
*/ |
*/ |
53 |
public FeatureSource getFeatureSource(); |
public FeatureSource<SimpleFeatureType, SimpleFeature> getFeatureSource(); |
54 |
|
|
55 |
/** |
/** |
56 |
* @return The features of this layer as a {@link FeatureCollection}. |
* @return The features of this layer as a {@link FeatureCollection}. |
57 |
*/ |
*/ |
58 |
public abstract FeatureCollection getFeatureCollection(); |
public abstract FeatureCollection<SimpleFeatureType, SimpleFeature> getFeatureCollection(); |
59 |
} |
} |