java.lang.Object | |
↳ | com.carto.styles.AnimationStyleBuilder |
A builder for AnimationStyle instances.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AnimationStyleBuilder()
Constructs an AnimationStyleBuilder object with all parameters set to defaults.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AnimationStyle |
buildStyle()
Builds a new instance of the AnimationStyle object using previously set parameters.
| ||||||||||
synchronized void | delete() | ||||||||||
AnimationType |
getFadeAnimationType()
Returns the fade animation type.
| ||||||||||
float |
getPhaseInDuration()
Returns the phase-in duration of the animation.
| ||||||||||
float |
getPhaseOutDuration()
Returns the phase-out duration of the animation.
| ||||||||||
float |
getRelativeSpeed()
Returns the relative speed of the animation.
| ||||||||||
AnimationType |
getSizeAnimationType()
Returns the size-related animation type.
| ||||||||||
void |
setFadeAnimationType(AnimationType animType)
Sets the fade animation type.
| ||||||||||
void |
setPhaseInDuration(float duration)
Sets the phase-in duration of the animation.
| ||||||||||
void |
setPhaseOutDuration(float duration)
Sets the phase-out duration of the animation.
| ||||||||||
void |
setRelativeSpeed(float relativeSpeed)
Sets the relative speed of the animation.
| ||||||||||
void |
setSizeAnimationType(AnimationType animType)
Sets the size-related animation type.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Constructs an AnimationStyleBuilder object with all parameters set to defaults.
Builds a new instance of the AnimationStyle object using previously set parameters.
Returns the fade animation type.
Returns the phase-in duration of the animation.
Returns the phase-out duration of the animation.
Returns the relative speed of the animation.
Returns the size-related animation type.
Sets the fade animation type.
animType | The new type of the fade animation. |
---|
Sets the phase-in duration of the animation.
duration | The new phase-in duration of the animation in seconds. |
---|
Sets the phase-out duration of the animation.
duration | The new phase-out duration of the animation in seconds. |
---|
Sets the relative speed of the animation. The relative speed affects all phases of the animation.
relativeSpeed | The new relative speed of the animation. |
---|
Sets the size-related animation type.
animType | The new type of the size-related animation. |
---|