Package com.massifmaps.styles
Class AnimationStyle
java.lang.Object
com.massifmaps.styles.AnimationStyle
A class describing animation effect.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if this object is equal to the specified object.intReturns the fade animation type.floatReturns the phase-in duration of the animation.floatReturns the phase-out duration of the animation.floatReturns the relative speed of the animation.intReturns the size-related animation type.inthashCode()Returns the hash value of this object.
-
Method Details
-
equals
Checks if this object is equal to the specified object. -
hashCode
public int hashCode()Returns the hash value of this object. -
getRelativeSpeed
public float getRelativeSpeed()Returns the relative speed of the animation.- Returns:
- The relative speed of the animation (1.0 corresponds to the default speed).
-
getPhaseInDuration
public float getPhaseInDuration()Returns the phase-in duration of the animation.- Returns:
- The phase-in duration of the animation in seconds.
-
getPhaseOutDuration
public float getPhaseOutDuration()Returns the phase-out duration of the animation.- Returns:
- The phase-out duration of the animation in seconds.
-
getFadeAnimationType
public int getFadeAnimationType()Returns the fade animation type.- Returns:
- The type of the fade animation.
-
getSizeAnimationType
public int getSizeAnimationType()Returns the size-related animation type.- Returns:
- The type of the size-related animation.
-