FT - The Type of the Feature created by this FactoryQT - The Type of the query used to select the features to be createdpublic interface FeatureFactory<FT extends FeatureServiceFeature,QT> extends Cloneable
createFeatures() can happen.| Modifier and Type | Interface and Description |
|---|---|
static class |
FeatureFactory.TooManyFeaturesException
Exception that is thrown when the features to be process by a feature factory exceeds the maximum number of
features supported.
|
| Modifier and Type | Method and Description |
|---|---|
FeatureFactory |
clone()
DOCUMENT ME!
|
List<FeatureServiceAttribute> |
createAttributes(SwingWorker workerThread)
Method that does not create FeatureServiceAttributes.
|
List<FT> |
createFeatures(QT query,
BoundingBox boundingBox,
SwingWorker workerThread)
Returns instances of features
FT that match the optional query and that fall into the optional
BoundingBox.Applies layerProperties (if set) on all Features (if the type of the feature implements the interface InheritsLayerProperties). |
List<FT> |
createFeatures(QT query,
BoundingBox boundingBox,
SwingWorker workerThread,
int offset,
int limit,
FeatureServiceAttribute[] orderBy)
Returns instances of features
FT that match the optional query and that fall into the optional
BoundingBox.Applies layerProperties (if set) on all Features (if the type of the feature implements the interface InheritsLayerProperties). |
FeatureServiceFeature |
createNewFeature()
This method must be implemented, if
AbstractFeatureService.isEditable(). |
int |
getFeatureCount(QT query,
BoundingBox bb)
DOCUMENT ME!
|
List<FT> |
getLastCreatedFeatures()
This operation can be used to retrieve the last created features without the need to invoke the
createFeatures() operation. |
LayerProperties |
getLayerProperties()
Returns the layerProperties that are applied to all features constructed.
|
int |
getMaxFeatureCount()
Returns the maximum number of features that can be returned by this feature factory.
|
void |
setLayerName(String layerName)
DOCUMENT ME!
|
void |
setLayerProperties(LayerProperties layerProperties)
Sets the layerProperties that are applied to all features constructed.
|
void |
setMaxFeatureCount(int maxFeatureCount)
Sets the maximum number of features that can be returned by this feature factory and that fall into the specified
BoundinfBox respectively.
|
void |
setSLDStyle(Map<String,LinkedList<org.deegree.style.se.unevaluated.Style>> styles)
DOCUMENT ME!
|
List<FT> createFeatures(QT query, BoundingBox boundingBox, SwingWorker workerThread) throws FeatureFactory.TooManyFeaturesException, Exception
FT that match the optional query and that fall into the optional
BoundingBox.InheritsLayerProperties). The SwingWorker instance can be used to set the progress of the operation and
to check the worker thread was canceled. The state of the features list after a the operation was canceled is
undefined.query - optional query of type QT to select the features to be returnedboundingBox - optional BoundingBox to restrict the features to be returnedworkerThread - an optional worker thread that is observedFTFeatureFactory.TooManyFeaturesException - if the maximum number of features is reached during processingException - if something went wrong during parsingList<FT> createFeatures(QT query, BoundingBox boundingBox, SwingWorker workerThread, int offset, int limit, FeatureServiceAttribute[] orderBy) throws FeatureFactory.TooManyFeaturesException, Exception
FT that match the optional query and that fall into the optional
BoundingBox.InheritsLayerProperties). The SwingWorker instance can be used to set the progress of the operation and
to check the worker thread was canceled. The state of the features list after a the operation was canceled is
undefined.query - optional query of type QT to select the features to be returnedboundingBox - optional BoundingBox to restrict the features to be returnedworkerThread - an optional worker thread that is observedoffset - the start indexlimit - a limitorderBy - the attributes, the features should be ordered byFTFeatureFactory.TooManyFeaturesException - if the maximum number of features is reached during processingException - if something went wrong during parsingList<FT> getLastCreatedFeatures()
createFeatures() operation. It returns a copy of the internal features vector of the factory to
provent concurrent modification exceptions.createFeatures()List<FeatureServiceAttribute> createAttributes(SwingWorker workerThread) throws FeatureFactory.TooManyFeaturesException, UnsupportedOperationException, Exception
workerThread - DOCUMENT ME!FeatureFactory.TooManyFeaturesException - if the maximum number of features is reached during processingUnsupportedOperationException - if the factory does not support the creation attributesException - if something went wrong during parsingvoid setLayerProperties(LayerProperties layerProperties)
layerProperties - new LayerPropertiesLayerProperties getLayerProperties()
FeatureServiceFeature createNewFeature()
AbstractFeatureService.isEditable().int getMaxFeatureCount()
maxFeatureCount.CachingFeatureFactoryvoid setMaxFeatureCount(int maxFeatureCount)
maxFeatureCount - the maximum number of featuresFeatureFactory clone()
int getFeatureCount(QT query, BoundingBox bb)
query - DOCUMENT ME!bb - DOCUMENT ME!void setSLDStyle(Map<String,LinkedList<org.deegree.style.se.unevaluated.Style>> styles)
styles - DOCUMENT ME!void setLayerName(String layerName)
layerName - DOCUMENT ME!Copyright © 2012–2025 cismet GmbH. All rights reserved.