Enum Class Easings
- All Implemented Interfaces:
Easing, Serializable, Comparable<Easings>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionStarts by moving slightly backward before accelerating forward.Cubic acceleration; starts very slow and speeds up rapidly.Cubic acceleration/deceleration; more pronounced than Quadratic In-Out.Quadratic acceleration/deceleration; slow start and end, fast in the middle.Quadratic acceleration; starts slow and speeds up.A simple linear transition where the rate of change is constant.Overshoots the target value slightly before settling back to 1.0.Cubic deceleration; starts very fast and slows down heavily.An oscillating transition that simulates an elastic rubber band effect, bouncing past the end point before settling.Quadratic deceleration; starts fast and slows down. -
Method Summary
Modifier and TypeMethodDescriptiondoubleapply(double t) Applies the specific easing formula of this constant to the input.static EasingsReturns the enum constant of this class with the specified name.static Easings[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
LINEAR
A simple linear transition where the rate of change is constant. -
IN_QUAD
Quadratic acceleration; starts slow and speeds up. -
OUT_QUAD
Quadratic deceleration; starts fast and slows down. -
IN_OUT_QUAD
Quadratic acceleration/deceleration; slow start and end, fast in the middle. -
IN_CUBIC
Cubic acceleration; starts very slow and speeds up rapidly. -
OUT_CUBIC
Cubic deceleration; starts very fast and slows down heavily. -
IN_OUT_CUBIC
Cubic acceleration/deceleration; more pronounced than Quadratic In-Out. -
IN_BACK
Starts by moving slightly backward before accelerating forward. Uses a standard overshoot constant of 1.70158. -
OUT_BACK
Overshoots the target value slightly before settling back to 1.0. -
OUT_ELASTIC
An oscillating transition that simulates an elastic rubber band effect, bouncing past the end point before settling.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
apply
-