Class Callout.ShowOptions
- java.lang.Object
-
- com.esri.arcgisruntime.mapping.view.Callout.ShowOptions
-
- Enclosing class:
- Callout
public static final class Callout.ShowOptions extends java.lang.ObjectEncapsulates a set of parameters that control how a callout is shown and dismissed. The parameters are:animateCallout- if this is true, the callout appears to grow out of its anchor point when it's shown and shrink back into its anchor point when it's dismissedrecenterMap- if this is true, the MapView is recentered on the callout location when the callout is shownanimateRecenter- if this andrecenterMapare both true, animation of the MapView is used when recentering the MapView when the callout is shown
false.- Since:
- 100.0.0
-
-
Constructor Summary
Constructors Constructor Description ShowOptions()Constructor that allows all the parameters to take their default values.ShowOptions(boolean animateCallout, boolean recenterMap, boolean animateRecenter)Constructor that specifies values for each of the parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAnimateCallout()Gets the value of theanimateCalloutparameter.booleanisAnimateRecenter()Gets the value of theanimateRecenterparameter.booleanisRecenterMap()Gets the value of therecenterMapparameter.voidsetAnimateCallout(boolean animateCallout)Sets the value of theanimateCalloutparameter.voidsetAnimateRecenter(boolean animateRecenter)Sets the value of theanimateRecenterparameter.voidsetRecenterMap(boolean recenterMap)Sets the value of therecenterMapparameter.
-
-
-
Constructor Detail
-
ShowOptions
public ShowOptions()
Constructor that allows all the parameters to take their default values.- Since:
- 100.0.0
-
ShowOptions
public ShowOptions(boolean animateCallout, boolean recenterMap, boolean animateRecenter)Constructor that specifies values for each of the parameters.- Parameters:
animateCallout-trueto make the callout appear to grow out of its anchor point when it's shown and shrink back into its anchor point when it's dismissedrecenterMap-trueto recenter the MapView on the callout location when the callout is shownanimateRecenter-trueto specify animation of the recentering of the MapView when the callout is shown- Since:
- 100.0.0
-
-
Method Detail
-
isAnimateCallout
public boolean isAnimateCallout()
Gets the value of theanimateCalloutparameter.- Returns:
- true if animation of the callout is set
- Since:
- 100.0.0
-
isAnimateRecenter
public boolean isAnimateRecenter()
Gets the value of theanimateRecenterparameter.- Returns:
- true if animation of the recentering of the MapView is set
- Since:
- 100.0.0
-
isRecenterMap
public boolean isRecenterMap()
Gets the value of therecenterMapparameter.- Returns:
- true if recentering of the MapView is set
- Since:
- 100.0.0
-
setAnimateCallout
public void setAnimateCallout(boolean animateCallout)
Sets the value of theanimateCalloutparameter.- Parameters:
animateCallout-trueto make the callout appear to grow out of its anchor point when it's shown and shrink back into its anchor point when it's dismissed; the default value isfalse- Since:
- 100.0.0
-
setAnimateRecenter
public void setAnimateRecenter(boolean animateRecenter)
Sets the value of theanimateRecenterparameter.- Parameters:
animateRecenter-trueto specify animation of the recentering of the MapView when the callout is shown; the default value isfalse- Since:
- 100.0.0
-
setRecenterMap
public void setRecenterMap(boolean recenterMap)
Sets the value of therecenterMapparameter.- Parameters:
recenterMap-trueto recenter the MapView on the callout location when the callout is shown; the default value isfalse- Since:
- 100.0.0
-
-