Documentation of 'org.opengis.feature.display.canvas.FeatureLayer' Java class
FeatureLayer
org.opengis.feature.display.canvas

Interface FeatureLayer



  • public interface FeatureLayer
    Abstract 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, each FeatureLayer has a Z-order value that indicates the order in which features are drawn on the FeatureCanvas. Lower numbers draw first.

    The current style and the Z-order are changeable at runtime, so consumers of FeatureLayer objects must add listeners to know if they have been changed.

    Since:
    GeoAPI 2.0
    • 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.IllegalArgumentException
        Sets 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. A FeatureCanvas may, for example, use this to receive notification when the style has changed.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.