Class LabelingInfo


  • public final class LabelingInfo
    extends Object
    Represents the properties of how a layer or sub-layer should be labelled.
    Since:
    100.0.0
    • Method Detail

      • getLabelExpression

        public String getLabelExpression()
        Gets the expression that specifies what text is used for the label.
        Returns:
        the label expression
        Since:
        100.0.0
      • getLabelPlacement

        public LabelingPlacement getLabelPlacement()
        Gets the placement of the label.
        Returns:
        the label placement
        Since:
        100.0.0
      • getMinScale

        public double getMinScale()
        Gets the minimum scale to display labels at.
        Returns:
        the min scale
        Since:
        100.0.0
      • getMaxScale

        public double getMaxScale()
        Gets the maximum scale to display labels at.
        Returns:
        the max scale
        Since:
        100.0.0
      • getSymbol

        public TextSymbol getSymbol()
        Gets the default symbol for this service.
        Returns:
        the symbol
        Since:
        100.0.0
      • getWhere

        public String getWhere()
        Gets the feature filter expression. Only those features are labelled which satisfy the where clause condition.
        Returns:
        the where clause condition
        Since:
        100.0.0
      • isUseCodedValues

        public boolean isUseCodedValues()
        Specifies whether or not the labelling is using coded values.
        Returns:
        true if the labelling uses coded values, false otherwise
        Since:
        100.0.0