Class LegendOptions

    • Method Detail

      • visibility

        public final Visibility visibility()

        Determines whether or not the legend is visible.

        If the service returns an enum value that is not available in the current SDK version, visibility will return Visibility.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from visibilityAsString().

        Returns:
        Determines whether or not the legend is visible.
        See Also:
        Visibility
      • visibilityAsString

        public final String visibilityAsString()

        Determines whether or not the legend is visible.

        If the service returns an enum value that is not available in the current SDK version, visibility will return Visibility.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from visibilityAsString().

        Returns:
        Determines whether or not the legend is visible.
        See Also:
        Visibility
      • title

        public final LabelOptions title()

        The custom title for the legend.

        Returns:
        The custom title for the legend.
      • position

        public final LegendPosition position()

        The positions for the legend. Choose one of the following options:

        • AUTO

        • RIGHT

        • BOTTOM

        • LEFT

        If the service returns an enum value that is not available in the current SDK version, position will return LegendPosition.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from positionAsString().

        Returns:
        The positions for the legend. Choose one of the following options:

        • AUTO

        • RIGHT

        • BOTTOM

        • LEFT

        See Also:
        LegendPosition
      • positionAsString

        public final String positionAsString()

        The positions for the legend. Choose one of the following options:

        • AUTO

        • RIGHT

        • BOTTOM

        • LEFT

        If the service returns an enum value that is not available in the current SDK version, position will return LegendPosition.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from positionAsString().

        Returns:
        The positions for the legend. Choose one of the following options:

        • AUTO

        • RIGHT

        • BOTTOM

        • LEFT

        See Also:
        LegendPosition
      • width

        public final String width()

        The width of the legend. If this value is omitted, a default width is used when rendering.

        Returns:
        The width of the legend. If this value is omitted, a default width is used when rendering.
      • height

        public final String height()

        The height of the legend. If this value is omitted, a default height is used when rendering.

        Returns:
        The height of the legend. If this value is omitted, a default height is used when rendering.
      • valueFontConfiguration

        public final FontConfiguration valueFontConfiguration()
        Returns the value of the ValueFontConfiguration property for this object.
        Returns:
        The value of the ValueFontConfiguration property for this object.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)