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.Object
Encapsulates 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 andrecenterMap
are 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 boolean
isAnimateCallout()
Gets the value of theanimateCallout
parameter.boolean
isAnimateRecenter()
Gets the value of theanimateRecenter
parameter.boolean
isRecenterMap()
Gets the value of therecenterMap
parameter.void
setAnimateCallout(boolean animateCallout)
Sets the value of theanimateCallout
parameter.void
setAnimateRecenter(boolean animateRecenter)
Sets the value of theanimateRecenter
parameter.void
setRecenterMap(boolean recenterMap)
Sets the value of therecenterMap
parameter.
-
-
-
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
-true
to 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
-true
to recenter the MapView on the callout location when the callout is shownanimateRecenter
-true
to 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 theanimateCallout
parameter.- Returns:
- true if animation of the callout is set
- Since:
- 100.0.0
-
isAnimateRecenter
public boolean isAnimateRecenter()
Gets the value of theanimateRecenter
parameter.- Returns:
- true if animation of the recentering of the MapView is set
- Since:
- 100.0.0
-
isRecenterMap
public boolean isRecenterMap()
Gets the value of therecenterMap
parameter.- Returns:
- true if recentering of the MapView is set
- Since:
- 100.0.0
-
setAnimateCallout
public void setAnimateCallout(boolean animateCallout)
Sets the value of theanimateCallout
parameter.- Parameters:
animateCallout
-true
to 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 theanimateRecenter
parameter.- Parameters:
animateRecenter
-true
to 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 therecenterMap
parameter.- Parameters:
recenterMap
-true
to recenter the MapView on the callout location when the callout is shown; the default value isfalse
- Since:
- 100.0.0
-
-