@ParametersAreNonnullByDefault public class GLMapAnimation extends GLNativeObject
GLMapAnimation defines animation of objects parameters that will be executed synchronously.| Modifier and Type | Class and Description |
|---|---|
static interface |
GLMapAnimation.Animation |
| Modifier and Type | Field and Description |
|---|---|
static int |
EaseIn |
static int |
EaseInOut |
static int |
EaseOut |
static int |
Linear |
static int |
None |
| Constructor and Description |
|---|
GLMapAnimation()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(boolean setFinalValues)
Cancels animation
|
void |
decelerate(MapPoint speed)
Defines the scrolling speed at the end of map scrolling movement.
|
void |
flyTo(double lat,
double lon)
Moves to new center with animation optimized for long distances.
|
void |
flyToGeoPoint(MapGeoPoint point)
Moves to new center with animation optimized for long distances.
|
void |
flyToPoint(MapPoint point)
Moves to new center with animation optimized for long distances.
|
void |
setAngle(GLMapDrawable drawable,
float angle)
Sets new angle of drawable
|
void |
setContinueFlyTo(boolean continueFlyTo)
If true flyTo animation will be used if new mapCenter is set and previous flyTo animation is not finished yet
|
void |
setDuration(double duration)
Sets duration of animation
|
void |
setFocusPoint(MapPoint focusPoint)
Sets focus point of zoom and rotate animations
|
void |
setOffset(GLMapDrawable drawable,
short ox,
short oy)
Sets new offset of drawable
|
void |
setPosition(GLMapDrawable drawable,
MapPoint position)
Set new position of drawable
|
void |
setScale(GLMapDrawable drawable,
double scale)
Sets new scale of drawable
|
void |
setTransition(int transition)
Sets transition of animation
|
disposepublic static final int None
public static final int Linear
public static final int EaseIn
public static final int EaseOut
public static final int EaseInOut
public void setTransition(int transition)
transition - new transition of animationpublic void setDuration(double duration)
duration - duration in secondspublic void setFocusPoint(MapPoint focusPoint)
focusPoint - focus pointpublic void setContinueFlyTo(boolean continueFlyTo)
continueFlyTo - continue flyTo animationpublic void setPosition(GLMapDrawable drawable, MapPoint position)
drawable - drawable to modifyposition - new positionpublic void setScale(GLMapDrawable drawable, double scale)
drawable - drawable to modifyscale - new scalepublic void setAngle(GLMapDrawable drawable, float angle)
drawable - drawable to modifyangle - new anglepublic void setOffset(GLMapDrawable drawable, short ox, short oy)
drawable - drawable to modifyox - new x offsetoy - newt y offsetpublic void flyToPoint(MapPoint point)
point - Target locationpublic void flyToGeoPoint(MapGeoPoint point)
point - Target locationpublic void flyTo(double lat,
double lon)
lat - Target latitudelon - Target longitudepublic void decelerate(MapPoint speed)
speed - initial speed of deceleratepublic void cancel(boolean setFinalValues)
setFinalValues - if true animated parameters will be set to it's final valuesCopyright © 2019 GetYourMap. All Rights Reserved.