Package org.gnome.adw
Enum Class Easing
- All Implemented Interfaces:
Serializable,Comparable<Easing>,Constable,Enumeration
@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 ConstantsEnum ConstantDescriptionCubic bezier tweening, with control points in (0.25, 0.1) and (0.25, 1.0).Cubic bezier tweening, with control points in (0.42, 0.0) and (1.0, 1.0).Overshooting 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.Cubic bezier tweening, with control points in (0.42, 0.0) and (0.58, 1.0).Overshooting cubic tweening, with backtracking on both ends, combiningADW_EASE_IN_BACKandADW_EASE_OUT_BACK.Exponentially decaying parabolic (bounce) tweening, with bounce on both ends, combiningADW_EASE_IN_BOUNCEandADW_EASE_OUT_BOUNCE.Circular tweening, combiningADW_EASE_IN_CIRCandADW_EASE_OUT_CIRC.Cubic tweening, combiningADW_EASE_IN_CUBICandADW_EASE_OUT_CUBIC.Elastic tweening, with offshoot on both ends, combiningADW_EASE_IN_ELASTICandADW_EASE_OUT_ELASTIC.Exponential tweening, combiningADW_EASE_IN_EXPOandADW_EASE_OUT_EXPO.Quadratic tweening, combiningADW_EASE_IN_QUADandADW_EASE_OUT_QUAD.Quartic tweening, combiningADW_EASE_IN_QUARTandADW_EASE_OUT_QUART.Quintic tweening, combiningADW_EASE_IN_QUINTandADW_EASE_OUT_QUINT.Sine wave tweening, combiningADW_EASE_IN_SINEandADW_EASE_OUT_SINE.Quadratic tweening.Quartic tweening.Quintic tweening.Sine wave tweening.Cubic bezier tweening, with control points in (0.0, 0.0) and (0.58, 1.0).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 TypeMethodDescriptiondoubleease(double value) Computes easing witheasingforvalue.static @Nullable TypegetType()Get the GType of the Easing classintgetValue()Get the numeric value of this enumstatic Easingof(int value) Create a new Easing for the provided valuestatic Easingof(MemorySegment address) Create a new Easing for the value in the provided memory address.static EasingReturns 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_QUADandADW_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_CUBICandADW_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_QUARTandADW_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_QUINTandADW_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_SINEandADW_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_EXPOandADW_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_CIRCandADW_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_ELASTICandADW_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_BACKandADW_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_BOUNCEandADW_EASE_OUT_BOUNCE. -
EASE
Cubic bezier tweening, with control points in (0.25, 0.1) and (0.25, 1.0).Increases in velocity towards the middle of the animation, slowing back down at the end.
- Since:
- 1.7
-
EASE_IN
Cubic bezier tweening, with control points in (0.42, 0.0) and (1.0, 1.0).Starts off slowly, with the speed of the animation increasing until complete.
- Since:
- 1.7
-
EASE_OUT
Cubic bezier tweening, with control points in (0.0, 0.0) and (0.58, 1.0).Starts quickly, slowing down the animation until complete.
- Since:
- 1.7
-
EASE_IN_OUT
Cubic bezier tweening, with control points in (0.42, 0.0) and (0.58, 1.0).Starts off slowly, speeds up in the middle, and then slows down again.
- Since:
- 1.7
-
-
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:
getValuein interfaceEnumeration- Returns:
- the enum value
-
of
Create a new Easing for the value in the provided memory address.- Parameters:
address- the memory address holding a enum value- Returns:
- the enum for the value in the provided memory address
-
getType
-
ease
public double ease(double value) Computes easing witheasingforvalue.valueshould generally be in the [0, 1] range.- Parameters:
value- a value to ease- Returns:
- the easing for
value
-