Enum Class Easing

java.lang.Object
java.lang.Enum<Easing>
org.gnome.adw.Easing
All Implemented Interfaces:
Serializable, Comparable<Easing>, Constable, Enumeration

@Generated("org.javagi.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 Enum

    Enum.EnumDesc<E>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Cubic 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, combining Adw.Easing.ease-in-back and Adw.Easing.ease-out-back.
    Exponentially decaying parabolic (bounce) tweening, with bounce on both ends, combining Adw.Easing.ease-in-bounce and Adw.Easing.ease-out-bounce.
    Circular tweening, combining Adw.Easing.ease-in-circ and Adw.Easing.ease-out-circ.
    Cubic tweening, combining Adw.Easing.ease-in-cubic and Adw.Easing.ease-out-cubic.
    Elastic tweening, with offshoot on both ends, combining Adw.Easing.ease-in-elastic and Adw.Easing.ease-out-elastic.
    Exponential tweening, combining Adw.Easing.ease-in-expo and Adw.Easing.ease-out-expo.
    Quadratic tweening, combining Adw.Easing.ease-in-quad and Adw.Easing.ease-out-quad.
    Quartic tweening, combining Adw.Easing.ease-in-quart and Adw.Easing.ease-out-quart.
    Quintic tweening, combining Adw.Easing.ease-in-quint and Adw.Easing.ease-out-quint.
    Sine wave tweening, combining Adw.Easing.ease-in-sine and Adw.Easing.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 of Adw.Easing.ease-in-back.
    Exponentially decaying parabolic (bounce) tweening, with bounce on end, inverse of Adw.Easing.ease-in-bounce.
    Circular tweening, inverse of Adw.Easing.ease-in-circ.
    Cubic tweening, inverse of Adw.Easing.ease-in-cubic.
    Elastic tweening, with offshoot on end, inverse of Adw.Easing.ease-in-elastic.
    Exponential tweening, inverse of Adw.Easing.ease-in-expo.
    Quadratic tweening, inverse of Adw.Easing.ease-in-quad.
    Quartic tweening, inverse of Adw.Easing.ease-in-quart.
    Quintic tweening, inverse of Adw.Easing.ease-in-quint.
    Sine wave tweening, inverse of Adw.Easing.ease-in-sine.
    Linear tweening.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    ease(double value)
    Computes easing with easing for value.
    static @Nullable Type
    Get the GType of the Easing class.
    int
    Get the numeric value of this enum
    static Easing
    of(int value)
    Create a new Easing for the provided value
    static Easing
    of(MemorySegment address)
    Create a new Easing for the value in the provided memory address.
    static Easing
    Returns the enum constant of this class with the specified name.
    static Easing[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • LINEAR

      public static final Easing LINEAR
      Linear tweening.
    • EASE_IN_QUAD

      public static final Easing EASE_IN_QUAD
      Quadratic tweening.
    • EASE_OUT_QUAD

      public static final Easing EASE_OUT_QUAD
      Quadratic tweening, inverse of Adw.Easing.ease-in-quad.
    • EASE_IN_OUT_QUAD

      public static final Easing EASE_IN_OUT_QUAD
      Quadratic tweening, combining Adw.Easing.ease-in-quad and Adw.Easing.ease-out-quad.
    • EASE_IN_CUBIC

      public static final Easing EASE_IN_CUBIC
      Cubic tweening.
    • EASE_OUT_CUBIC

      public static final Easing EASE_OUT_CUBIC
      Cubic tweening, inverse of Adw.Easing.ease-in-cubic.
    • EASE_IN_OUT_CUBIC

      public static final Easing EASE_IN_OUT_CUBIC
      Cubic tweening, combining Adw.Easing.ease-in-cubic and Adw.Easing.ease-out-cubic.
    • EASE_IN_QUART

      public static final Easing EASE_IN_QUART
      Quartic tweening.
    • EASE_OUT_QUART

      public static final Easing EASE_OUT_QUART
      Quartic tweening, inverse of Adw.Easing.ease-in-quart.
    • EASE_IN_OUT_QUART

      public static final Easing EASE_IN_OUT_QUART
      Quartic tweening, combining Adw.Easing.ease-in-quart and Adw.Easing.ease-out-quart.
    • EASE_IN_QUINT

      public static final Easing EASE_IN_QUINT
      Quintic tweening.
    • EASE_OUT_QUINT

      public static final Easing EASE_OUT_QUINT
      Quintic tweening, inverse of Adw.Easing.ease-in-quint.
    • EASE_IN_OUT_QUINT

      public static final Easing EASE_IN_OUT_QUINT
      Quintic tweening, combining Adw.Easing.ease-in-quint and Adw.Easing.ease-out-quint.
    • EASE_IN_SINE

      public static final Easing EASE_IN_SINE
      Sine wave tweening.
    • EASE_OUT_SINE

      public static final Easing EASE_OUT_SINE
      Sine wave tweening, inverse of Adw.Easing.ease-in-sine.
    • EASE_IN_OUT_SINE

      public static final Easing EASE_IN_OUT_SINE
      Sine wave tweening, combining Adw.Easing.ease-in-sine and Adw.Easing.ease-out-sine.
    • EASE_IN_EXPO

      public static final Easing EASE_IN_EXPO
      Exponential tweening.
    • EASE_OUT_EXPO

      public static final Easing EASE_OUT_EXPO
      Exponential tweening, inverse of Adw.Easing.ease-in-expo.
    • EASE_IN_OUT_EXPO

      public static final Easing EASE_IN_OUT_EXPO
      Exponential tweening, combining Adw.Easing.ease-in-expo and Adw.Easing.ease-out-expo.
    • EASE_IN_CIRC

      public static final Easing EASE_IN_CIRC
      Circular tweening.
    • EASE_OUT_CIRC

      public static final Easing EASE_OUT_CIRC
      Circular tweening, inverse of Adw.Easing.ease-in-circ.
    • EASE_IN_OUT_CIRC

      public static final Easing EASE_IN_OUT_CIRC
      Circular tweening, combining Adw.Easing.ease-in-circ and Adw.Easing.ease-out-circ.
    • EASE_IN_ELASTIC

      public static final Easing EASE_IN_ELASTIC
      Elastic tweening, with offshoot on start.
    • EASE_OUT_ELASTIC

      public static final Easing EASE_OUT_ELASTIC
      Elastic tweening, with offshoot on end, inverse of Adw.Easing.ease-in-elastic.
    • EASE_IN_OUT_ELASTIC

      public static final Easing EASE_IN_OUT_ELASTIC
      Elastic tweening, with offshoot on both ends, combining Adw.Easing.ease-in-elastic and Adw.Easing.ease-out-elastic.
    • EASE_IN_BACK

      public static final Easing EASE_IN_BACK
      Overshooting cubic tweening, with backtracking on start.
    • EASE_OUT_BACK

      public static final Easing EASE_OUT_BACK
      Overshooting cubic tweening, with backtracking on end, inverse of Adw.Easing.ease-in-back.
    • EASE_IN_OUT_BACK

      public static final Easing EASE_IN_OUT_BACK
      Overshooting cubic tweening, with backtracking on both ends, combining Adw.Easing.ease-in-back and Adw.Easing.ease-out-back.
    • EASE_IN_BOUNCE

      public static final Easing EASE_IN_BOUNCE
      Exponentially decaying parabolic (bounce) tweening, on start.
    • EASE_OUT_BOUNCE

      public static final Easing EASE_OUT_BOUNCE
      Exponentially decaying parabolic (bounce) tweening, with bounce on end, inverse of Adw.Easing.ease-in-bounce.
    • EASE_IN_OUT_BOUNCE

      public static final Easing EASE_IN_OUT_BOUNCE
      Exponentially decaying parabolic (bounce) tweening, with bounce on both ends, combining Adw.Easing.ease-in-bounce and Adw.Easing.ease-out-bounce.
    • EASE

      public static final Easing 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

      public static final Easing 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

      public static final Easing 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

      public static final Easing 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

      public static Easing[] 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

      public static Easing valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • of

      public static Easing of(int value)
      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 interface Enumeration
      Returns:
      the enum value
    • of

      public static Easing of(MemorySegment address)
      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

      public static @Nullable Type getType()
      Get the GType of the Easing class.
      Returns:
      the GType
    • ease

      public double ease(double value)

      Computes easing with easing for value.

      value should generally be in the [0, 1] range.

      Parameters:
      value - a value to ease
      Returns:
      the easing for value