org.opengis.feature.display.canvas
Interface FeatureLayer
-
public interface FeatureLayerAbstract base class for a grouping of features drawn on a Canvas. Each instance of this interface has a reference to a collection of features to draw and a style to draw those features with. Also, eachFeatureLayerhas a Z-order value that indicates the order in which features are drawn on theFeatureCanvas. Lower numbers draw first.The current style and the Z-order are changeable at runtime, so consumers of
FeatureLayerobjects must add listeners to know if they have been changed.- Since:
- GeoAPI 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidaddFeatureLayerListener(FeatureLayerListener ll)Allows an object to register for events when one of the mutable properties of this layer has changed.FeatureCollectiongetFeatureCollection()Returns the collection of features that will be portrayed in this layer.doublegetLevel()Returns the current z-order level of this layer.doublegetMaximumLevel()Returns the maximum z-order level that this layer can be moved to.doublegetMinimumLevel()Returns the minimum z-order level that this layer can be moved to.FeatureStylegetStyle()Returns the style to apply to features in this layer.voidremoveFeatureLayerListener(FeatureLayerListener ll)Removes a listener that was previously added with themethod.addFeatureLayerListener(ll)voidsetLevel(double level)Sets the current z-order level of this layer.voidsetStyle(FeatureStyle style)Sets the style that will be applied to features in this layer.
-
-
-
Method Detail
-
getFeatureCollection
FeatureCollection getFeatureCollection()
Returns the collection of features that will be portrayed in this layer. A null value is allowed and indicates that nothing will be drawn.
-
getStyle
FeatureStyle getStyle()
Returns the style to apply to features in this layer. A null value is allowed, and indicates that the features should not be drawn.
-
setStyle
void setStyle(FeatureStyle style)
Sets the style that will be applied to features in this layer.
-
getMinimumLevel
double getMinimumLevel()
Returns the minimum z-order level that this layer can be moved to.
-
getMaximumLevel
double getMaximumLevel()
Returns the maximum z-order level that this layer can be moved to.
-
setLevel
void setLevel(double level) throws java.lang.IllegalArgumentExceptionSets the current z-order level of this layer.- Throws:
java.lang.IllegalArgumentException- If the level is outside the allowable range.
-
getLevel
double getLevel()
Returns the current z-order level of this layer.
-
addFeatureLayerListener
void addFeatureLayerListener(FeatureLayerListener ll)
Allows an object to register for events when one of the mutable properties of this layer has changed. AFeatureCanvasmay, for example, use this to receive notification when the style has changed.
-
removeFeatureLayerListener
void removeFeatureLayerListener(FeatureLayerListener ll)
Removes a listener that was previously added with themethod.addFeatureLayerListener(ll)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG