Class PanOptions
java.lang.Object
org.vaadin.addons.componentfactory.leaflet.options.PanOptions
- All Implemented Interfaces:
Serializable
Some of the Map methods which modify the center of the map take in an options
parameter.
- Since:
- 2020-03-11
- Version:
- 1.0
- Author:
- Gabor Kokeny Email: kokeny19@gmail.com
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the duration of the panning animation, in seconds.doubleReturns the curvature factor of the panning animation easing.booleanReturns whether panning is animated.booleanReturns whether panning suppresses the movestart event on start.voidsetAnimate(boolean animate) If true, panning will always be animated if possible.voidsetDuration(double duration) Duration of animated panning, in seconds.voidsetEaseLinearity(double easeLinearity) The curvature factor of panning animation easing (third parameter of the Cubic Bezier curve).voidsetNoMoveStart(boolean noMoveStart) If true, panning won't fire movestart event on start (used internally for panning inertia).
-
Constructor Details
-
PanOptions
public PanOptions()
-
-
Method Details
-
isAnimate
public boolean isAnimate()Returns whether panning is animated.- Returns:
- the animate
-
setAnimate
public void setAnimate(boolean animate) If true, panning will always be animated if possible. If false, it will not animate panning, either resetting the map view if panning more than a screen away, or just setting a new offset for the map pane (except for panBy which always does the latter).- Parameters:
animate- the animate to set
-
getDuration
public double getDuration()Returns the duration of the panning animation, in seconds.- Returns:
- the duration
-
setDuration
public void setDuration(double duration) Duration of animated panning, in seconds.- Parameters:
duration- the duration to set
-
getEaseLinearity
public double getEaseLinearity()Returns the curvature factor of the panning animation easing.- Returns:
- the easeLinearity
-
setEaseLinearity
public void setEaseLinearity(double easeLinearity) The curvature factor of panning animation easing (third parameter of the Cubic Bezier curve). 1.0 means linear animation, and the smaller this number, the more bowed the curve.- Parameters:
easeLinearity- the easeLinearity to set
-
isNoMoveStart
public boolean isNoMoveStart()Returns whether panning suppresses the movestart event on start.- Returns:
- the noMoveStart
-
setNoMoveStart
public void setNoMoveStart(boolean noMoveStart) If true, panning won't fire movestart event on start (used internally for panning inertia).- Parameters:
noMoveStart- the noMoveStart to set
-