java.lang.Object
com.esri.arcgisruntime.mapping.view.ViewLabelProperties
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 Summary
ConstructorDescriptionCreates a new ViewLabelProperties instance.ViewLabelProperties
(boolean animationEnabled, boolean labelingEnabled) Creates a new ViewLabelProperties instance with the given animation and labeling enabled values. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets whether animation is enabled for labels in the view.boolean
Gets whether labels are enabled in the view.void
setAnimationEnabled
(boolean animationEnabled) Sets whether animation is enabled for labels in the view.void
setLabelingEnabled
(boolean labelingEnabled) Sets whether labels are enabled in the view.
-
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 otherwiselabelingEnabled
- 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
-