Class ViewLabelProperties

java.lang.Object
com.esri.arcgisruntime.mapping.view.ViewLabelProperties

public final class ViewLabelProperties extends Object
Represents the labeling properties for a MapView. The properties allow for labels and animations to be enabled or disabled in the view.
Since:
100.4.0
  • Constructor Details

    • ViewLabelProperties

      public ViewLabelProperties()
      Creates a new ViewLabelProperties instance. The defaults are:
      • LabelingEnabled = true
      • AnimationEnabled = false
      Since:
      100.4.0
    • ViewLabelProperties

      public ViewLabelProperties(boolean animationEnabled, boolean labelingEnabled)
      Creates a new ViewLabelProperties instance with the given animation and labeling enabled values.
      Parameters:
      animationEnabled - true to enable animations, false otherwise
      labelingEnabled - true to enable labels, false otherwise
      Since:
      100.4.0
  • Method Details

    • isAnimationEnabled

      public boolean isAnimationEnabled()
      Gets whether animation is enabled for labels in the view. Default is false.
      Returns:
      true if animation is enabled, false otherwise.
      Since:
      100.4.0
    • setAnimationEnabled

      public void setAnimationEnabled(boolean animationEnabled)
      Sets whether animation is enabled for labels in the view.
      Parameters:
      animationEnabled - true to enable animation, false otherwise
      Since:
      100.4.0
    • isLabelingEnabled

      public boolean isLabelingEnabled()
      Gets whether labels are enabled in the view.
      Returns:
      true if labels are enabled, false otherwise
      Since:
      100.4.0
    • setLabelingEnabled

      public void setLabelingEnabled(boolean labelingEnabled)
      Sets whether labels are enabled in the view.
      Parameters:
      labelingEnabled - true to enable labels, false otherwise.
      Since:
      100.4.0