Package org.gnome.adw
Enum Class Easing
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<Easing>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum Easing
extends Enum<Easing>
implements Enumeration
Describes the available easing functions for use with
TimedAnimation
.
New values may be added to this enumeration over time.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionOvershooting cubic tweening, with backtracking on start.Exponentially decaying parabolic (bounce) tweening, on start.Circular tweening.Cubic tweening.Elastic tweening, with offshoot on start.Exponential tweening.Overshooting cubic tweening, with backtracking on both ends, combiningADW_EASE_IN_BACK
andADW_EASE_OUT_BACK
.Exponentially decaying parabolic (bounce) tweening, with bounce on both ends, combiningADW_EASE_IN_BOUNCE
andADW_EASE_OUT_BOUNCE
.Circular tweening, combiningADW_EASE_IN_CIRC
andADW_EASE_OUT_CIRC
.Cubic tweening, combiningADW_EASE_IN_CUBIC
andADW_EASE_OUT_CUBIC
.Elastic tweening, with offshoot on both ends, combiningADW_EASE_IN_ELASTIC
andADW_EASE_OUT_ELASTIC
.Exponential tweening, combiningADW_EASE_IN_EXPO
andADW_EASE_OUT_EXPO
.Quadratic tweening, combiningADW_EASE_IN_QUAD
andADW_EASE_OUT_QUAD
.Quartic tweening, combiningADW_EASE_IN_QUART
andADW_EASE_OUT_QUART
.Quintic tweening, combiningADW_EASE_IN_QUINT
andADW_EASE_OUT_QUINT
.Sine wave tweening, combiningADW_EASE_IN_SINE
andADW_EASE_OUT_SINE
.Quadratic tweening.Quartic tweening.Quintic tweening.Sine wave tweening.Overshooting cubic tweening, with backtracking on end, inverse ofADW_EASE_IN_BACK
.Exponentially decaying parabolic (bounce) tweening, with bounce on end, inverse ofADW_EASE_IN_BOUNCE
.Circular tweening, inverse ofADW_EASE_IN_CIRC
.Cubic tweening, inverse ofADW_EASE_IN_CUBIC
.Elastic tweening, with offshoot on end, inverse ofADW_EASE_IN_ELASTIC
.Exponential tweening, inverse ofADW_EASE_IN_EXPO
.Quadratic tweening, inverse ofADW_EASE_IN_QUAD
.Quartic tweening, inverse ofADW_EASE_IN_QUART
.Quintic tweening, inverse ofADW_EASE_IN_QUINT
.Sine wave tweening, inverse ofADW_EASE_IN_SINE
.Linear tweening. -
Method Summary
Modifier and TypeMethodDescriptiondouble
ease
(double value) Computes easing witheasing
forvalue
.static Type
getType()
Get the GType of the Easing classint
getValue()
Get the numeric value of this enumstatic Easing
of
(int value) Create a new Easing for the provided valuestatic Easing
Returns the enum constant of this class with the specified name.static Easing[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LINEAR
Linear tweening. -
EASE_IN_QUAD
Quadratic tweening. -
EASE_OUT_QUAD
Quadratic tweening, inverse ofADW_EASE_IN_QUAD
. -
EASE_IN_OUT_QUAD
Quadratic tweening, combiningADW_EASE_IN_QUAD
andADW_EASE_OUT_QUAD
. -
EASE_IN_CUBIC
Cubic tweening. -
EASE_OUT_CUBIC
Cubic tweening, inverse ofADW_EASE_IN_CUBIC
. -
EASE_IN_OUT_CUBIC
Cubic tweening, combiningADW_EASE_IN_CUBIC
andADW_EASE_OUT_CUBIC
. -
EASE_IN_QUART
Quartic tweening. -
EASE_OUT_QUART
Quartic tweening, inverse ofADW_EASE_IN_QUART
. -
EASE_IN_OUT_QUART
Quartic tweening, combiningADW_EASE_IN_QUART
andADW_EASE_OUT_QUART
. -
EASE_IN_QUINT
Quintic tweening. -
EASE_OUT_QUINT
Quintic tweening, inverse ofADW_EASE_IN_QUINT
. -
EASE_IN_OUT_QUINT
Quintic tweening, combiningADW_EASE_IN_QUINT
andADW_EASE_OUT_QUINT
. -
EASE_IN_SINE
Sine wave tweening. -
EASE_OUT_SINE
Sine wave tweening, inverse ofADW_EASE_IN_SINE
. -
EASE_IN_OUT_SINE
Sine wave tweening, combiningADW_EASE_IN_SINE
andADW_EASE_OUT_SINE
. -
EASE_IN_EXPO
Exponential tweening. -
EASE_OUT_EXPO
Exponential tweening, inverse ofADW_EASE_IN_EXPO
. -
EASE_IN_OUT_EXPO
Exponential tweening, combiningADW_EASE_IN_EXPO
andADW_EASE_OUT_EXPO
. -
EASE_IN_CIRC
Circular tweening. -
EASE_OUT_CIRC
Circular tweening, inverse ofADW_EASE_IN_CIRC
. -
EASE_IN_OUT_CIRC
Circular tweening, combiningADW_EASE_IN_CIRC
andADW_EASE_OUT_CIRC
. -
EASE_IN_ELASTIC
Elastic tweening, with offshoot on start. -
EASE_OUT_ELASTIC
Elastic tweening, with offshoot on end, inverse ofADW_EASE_IN_ELASTIC
. -
EASE_IN_OUT_ELASTIC
Elastic tweening, with offshoot on both ends, combiningADW_EASE_IN_ELASTIC
andADW_EASE_OUT_ELASTIC
. -
EASE_IN_BACK
Overshooting cubic tweening, with backtracking on start. -
EASE_OUT_BACK
Overshooting cubic tweening, with backtracking on end, inverse ofADW_EASE_IN_BACK
. -
EASE_IN_OUT_BACK
Overshooting cubic tweening, with backtracking on both ends, combiningADW_EASE_IN_BACK
andADW_EASE_OUT_BACK
. -
EASE_IN_BOUNCE
Exponentially decaying parabolic (bounce) tweening, on start. -
EASE_OUT_BOUNCE
Exponentially decaying parabolic (bounce) tweening, with bounce on end, inverse ofADW_EASE_IN_BOUNCE
. -
EASE_IN_OUT_BOUNCE
Exponentially decaying parabolic (bounce) tweening, with bounce on both ends, combiningADW_EASE_IN_BOUNCE
andADW_EASE_OUT_BOUNCE
.
-
-
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
-
of
Create a new Easing for the provided value- Parameters:
value
- the enum value- Returns:
- the enum for the provided value
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValue
in interfaceEnumeration
- Returns:
- the enum value
-
getType
-
ease
public double ease(double value) Computes easing witheasing
forvalue
.value
should generally be in the [0, 1] range.- Parameters:
value
- a value to ease- Returns:
- the easing for
value
-