- java.lang.Object
-
- net.miginfocom.layout.AnimSpec
-
- All Implemented Interfaces:
java.io.Serializable
public class AnimSpec extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AnimSpec(int prio, int durMillis, float easeIn, float easeOut)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDurationMillis()
int
getDurationMillis(int defMillis)
float
getEaseIn()
float
getEaseOut()
int
getPriority()
-
-
-
Field Detail
-
DEF
public static final AnimSpec DEF
-
prio
private final int prio
-
durMillis
private final int durMillis
-
easeIn
private final float easeIn
-
easeOut
private final float easeOut
-
-
Constructor Detail
-
AnimSpec
public AnimSpec(int prio, int durMillis, float easeIn, float easeOut)
- Parameters:
prio
- The animation priority. When added with the general animation priority of the layout the animation will be done if the resulting value is > 0.durMillis
- Duration in milliseconds. <=0 means default value should be used and > 0 is the number of milliseaseIn
- 0 is linear (no ease). 1 is max ease. Always clamped between these values.easeOut
- 0 is linear (no ease). 1 is max ease. Always clamped between these values.
-
-
Method Detail
-
getPriority
public int getPriority()
- Returns:
- The animation priority. When added with the general animation priority of the layout the animation will be done if the resulting value is > 0.
-
getDurationMillis
public int getDurationMillis(int defMillis)
- Parameters:
defMillis
- Default used if the millis in the spec is set to "default".- Returns:
- Duration in milliseconds. <=0 means default value should be used and > 0 is the number of millis
-
getDurationMillis
public int getDurationMillis()
- Returns:
- Duration in milliseconds. <= 0 means default value should be used and > 0 is the number of millis
-
getEaseIn
public float getEaseIn()
- Returns:
- A value between 0 and 1 where 0 is no ease in and 1 is maximum ease in.
-
getEaseOut
public float getEaseOut()
- Returns:
- A value between 0 and 1 where 0 is no ease out and 1 is maximum ease out.
-
-