Package net.miginfocom.layout
Class AnimSpec
java.lang.Object
net.miginfocom.layout.AnimSpec
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DEF
-
-
Constructor Details
-
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. invalid input: '<'=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 Details
-
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. invalid input: '<'=0 means default value should be used and > 0 is the number of millis
-
getDurationMillis
public int getDurationMillis()- Returns:
- Duration in milliseconds. invalid input: '<'= 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.
-