Class FrameTransitionFunction

java.lang.Object
org.eclipse.nebula.widgets.tiles.FrameTransitionFunction

class FrameTransitionFunction
extends java.lang.Object
A class that models a Cubic-Bezier curve. CSS: Ease-in (0.42,0,1,1) (slow start) CSS: Ease-out (0,0,0.58,1) (slow end) CSS: Ease-in-out (0.42,0,0.58,1) (slow start & end) Ported from: https://github.com/arian/cubic-bezier/blob/master/index.js
  • Constructor Summary

    Constructors 
    Constructor Description
    FrameTransitionFunction​(double x1, double y1, double x2, double y2)
    Creates a new instance
  • Method Summary

    Modifier and Type Method Description
    double bezier​(double t, double duration)
    Computes the position on the bezier curve

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FrameTransitionFunction

      FrameTransitionFunction​(double x1, double y1, double x2, double y2)
      Creates a new instance
      Parameters:
      x1 -
      y1 -
      x2 -
      y2 -
  • Method Details

    • bezier

      public double bezier​(double t, double duration)
      Computes the position on the bezier curve
      Parameters:
      t -
      duration -
      Returns: