Enum Class Interpolates

java.lang.Object
java.lang.Enum<Interpolates>
com.imyeyu.fx.bean.Interpolates
All Implemented Interfaces:
Serializable, Comparable<Interpolates>, Constable

public enum Interpolates extends Enum<Interpolates>
贝塞尔曲线,动画运动方式,常用 EASE_OUT_EXPO
Since:
2022-02-16 22:43
Author:
夜雨
  • Enum Constant Details

    • EASE

      public static final Interpolates EASE
      EASE ( .25, .1, .25, 1)
    • LINEAR

      public static final Interpolates LINEAR
      LINEAR ( 0, 0, 1, 1)
    • EASE_IN

      public static final Interpolates EASE_IN
      EASE_IN ( .42, 0, 1, 1)
    • EASE_OUT

      public static final Interpolates EASE_OUT
      EASE_OUT ( 0, 0, .58, 1)
    • EASE_IN_OUT

      public static final Interpolates EASE_IN_OUT
      EASE_IN_OUT ( .42, 0, .58, 1)
    • EASE_IN_SINE

      public static final Interpolates EASE_IN_SINE
      EASE_IN_SINE ( .47, 0, .745, .715)
    • EASE_OUT_SINE

      public static final Interpolates EASE_OUT_SINE
      EASE_OUT_SINE ( .39, .575, .565, 1)
    • EASE_IN_OUT_SINE

      public static final Interpolates EASE_IN_OUT_SINE
      EASE_IN_OUT_SINE (.445, .05, .55, .95)
    • EASE_IN_QUAD

      public static final Interpolates EASE_IN_QUAD
      EASE_IN_QUAD ( .55, .085, .68, .53)
    • EASE_OUT_QUAD

      public static final Interpolates EASE_OUT_QUAD
      EASE_OUT_QUAD ( .25, .46, .45, .94)
    • EASE_IN_OUT_QUAD

      public static final Interpolates EASE_IN_OUT_QUAD
      EASE_IN_OUT_QUAD (.455, .03, .515, .955)
    • EASE_IN_CUBIC

      public static final Interpolates EASE_IN_CUBIC
      EASE_IN_CUBIC ( .55, .055, .675, .19)
    • EASE_OUT_CUBIC

      public static final Interpolates EASE_OUT_CUBIC
      EASE_OUT_CUBIC (.215, .61, .355, 1)
    • EASE_IN_OUT_CUBIC

      public static final Interpolates EASE_IN_OUT_CUBIC
      EASE_IN_OUT_CUBIC (.645, .045, .355, 1)
    • EASE_IN_QUART

      public static final Interpolates EASE_IN_QUART
      EASE_IN_QUART (.895, .03, .685, .22)
    • EASE_OUT_QUART

      public static final Interpolates EASE_OUT_QUART
      EASE_OUT_QUART (.165, .84, .44, 1)
    • EASE_IN_OUT_QUART

      public static final Interpolates EASE_IN_OUT_QUART
      EASE_IN_OUT_QUART ( .77, 0, .175, 1)
    • EASE_IN_QUINT

      public static final Interpolates EASE_IN_QUINT
      EASE_IN_QUINT (.755, .05, .855, .06)
    • EASE_OUT_QUINT

      public static final Interpolates EASE_OUT_QUINT
      EASE_OUT_QUINT ( .23, 1, .32, 1)
    • EASE_IN_OUT_QUINT

      public static final Interpolates EASE_IN_OUT_QUINT
      EASE_IN_OUT_QUINT ( .86, 0, .07, 1)
    • EASE_IN_EXPO

      public static final Interpolates EASE_IN_EXPO
      EASE_IN_EXPO ( .95, .05, .795, .035)
    • EASE_OUT_EXPO

      public static final Interpolates EASE_OUT_EXPO
      EASE_OUT_EXPO ( .19, 1, .22, 1)
    • EASE_IN_OUT_EXPO

      public static final Interpolates EASE_IN_OUT_EXPO
      EASE_IN_OUT_EXPO ( 1, 0, 0, 1)
    • EASE_IN_CIRC

      public static final Interpolates EASE_IN_CIRC
      EASE_IN_CIRC ( .6, .04, .98, .335)
    • EASE_OUT_CIRC

      public static final Interpolates EASE_OUT_CIRC
      EASE_OUT_CIRC (.075, .82, .165, 1)
    • EASE_IN_BACK

      public static final Interpolates EASE_IN_BACK
      EASE_IN_BACK ( .6, .28, .735, .045)
  • Method Details

    • values

      public static Interpolates[] 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 Interpolates 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
    • buildBezierPoint

      public double[][] buildBezierPoint(long precision)
      构造二次贝塞尔点,值域为 [0, 1]
      Parameters:
      precision - 精度,构造数据量,不可小于 4
      Returns:
      贝塞尔点列表,第二维 [0]: x 轴坐标,[1]: y 轴坐标
    • buildBezierPoint

      public double[][] buildBezierPoint(double boost, long precision)
      构造二次贝塞尔点
      Parameters:
      boost - 增幅,默认 1,值域为 [0, 1]
      precision - 精度,构造数据量,不可小于 4
      Returns:
      贝塞尔点列表,第二维 [0]: x 轴坐标,[1]: y 轴坐标
    • buildBezierPointValue

      public double[] buildBezierPointValue(long precision)
      构造二次贝塞尔点值,值域为 [0, 1]
      Parameters:
      precision - 精度,构造数据量,不可小于 4
      Returns:
      贝塞尔点列表,值为 y 轴坐标
    • buildBezierPointValue

      public double[] buildBezierPointValue(double boost, long precision)
      构造二次贝塞尔点值
      Parameters:
      boost - 增幅,默认 1,值域为 [0, 1]
      precision - 精度,构造数据量,不可小于 4
      Returns:
      贝塞尔点列表,值为 y 轴坐标
    • getValue

      public com.sun.scenario.animation.SplineInterpolator getValue()
      插值器
    • getX1

      public double getX1()
      控制的 1 的横坐标
    • getY1

      public double getY1()
      控制点 1 的纵坐标
    • getX2

      public double getX2()
      控制点 2 的横坐标
    • getY2

      public double getY2()
      控制点 2 的纵坐标