Package net.miginfocom.layout
Class AnimSpec
- java.lang.Object
-
- net.miginfocom.layout.AnimSpec
-
- All Implemented Interfaces:
Serializable
public class AnimSpec extends Object implements Serializable
- Author:
- Mikael Grev, MiG InfoCom AB Date: 14-09-24 Time: 17:05
- 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
-
-
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.
-
-