Tabnine Logo
Keyframe$FloatKeyframe
Code IndexAdd Tabnine to your IDE (free)

How to use
Keyframe$FloatKeyframe
in
com.actionbarsherlock.internal.nineoldandroids.animation

Best Java code snippets using com.actionbarsherlock.internal.nineoldandroids.animation.Keyframe$FloatKeyframe (Showing top 8 results out of 315)

origin: com.willowtreeapps/oak-demos

  if (firstTime) {
    firstTime = false;
    firstValue = ((FloatKeyframe) mKeyframes.get(0)).getFloatValue();
    lastValue = ((FloatKeyframe) mKeyframes.get(1)).getFloatValue();
    deltaValue = lastValue - firstValue;
  final FloatKeyframe prevKeyframe = (FloatKeyframe) mKeyframes.get(0);
  final FloatKeyframe nextKeyframe = (FloatKeyframe) mKeyframes.get(1);
  float prevValue = prevKeyframe.getFloatValue();
  float nextValue = nextKeyframe.getFloatValue();
  float prevFraction = prevKeyframe.getFraction();
  float nextFraction = nextKeyframe.getFraction();
  final /*Time*/Interpolator interpolator = nextKeyframe.getInterpolator();
  if (interpolator != null) {
    fraction = interpolator.getInterpolation(fraction);
  final FloatKeyframe prevKeyframe = (FloatKeyframe) mKeyframes.get(mNumKeyframes - 2);
  final FloatKeyframe nextKeyframe = (FloatKeyframe) mKeyframes.get(mNumKeyframes - 1);
  float prevValue = prevKeyframe.getFloatValue();
  float nextValue = nextKeyframe.getFloatValue();
  float prevFraction = prevKeyframe.getFraction();
  float nextFraction = nextKeyframe.getFraction();
  final /*Time*/Interpolator interpolator = nextKeyframe.getInterpolator();
  if (interpolator != null) {
    fraction = interpolator.getInterpolation(fraction);
for (int i = 1; i < mNumKeyframes; ++i) {
  FloatKeyframe nextKeyframe = (FloatKeyframe) mKeyframes.get(i);
  if (fraction < nextKeyframe.getFraction()) {
origin: com.actionbarsherlock/actionbarsherlock

  if (firstTime) {
    firstTime = false;
    firstValue = ((FloatKeyframe) mKeyframes.get(0)).getFloatValue();
    lastValue = ((FloatKeyframe) mKeyframes.get(1)).getFloatValue();
    deltaValue = lastValue - firstValue;
  final FloatKeyframe prevKeyframe = (FloatKeyframe) mKeyframes.get(0);
  final FloatKeyframe nextKeyframe = (FloatKeyframe) mKeyframes.get(1);
  float prevValue = prevKeyframe.getFloatValue();
  float nextValue = nextKeyframe.getFloatValue();
  float prevFraction = prevKeyframe.getFraction();
  float nextFraction = nextKeyframe.getFraction();
  final /*Time*/Interpolator interpolator = nextKeyframe.getInterpolator();
  if (interpolator != null) {
    fraction = interpolator.getInterpolation(fraction);
  final FloatKeyframe prevKeyframe = (FloatKeyframe) mKeyframes.get(mNumKeyframes - 2);
  final FloatKeyframe nextKeyframe = (FloatKeyframe) mKeyframes.get(mNumKeyframes - 1);
  float prevValue = prevKeyframe.getFloatValue();
  float nextValue = nextKeyframe.getFloatValue();
  float prevFraction = prevKeyframe.getFraction();
  float nextFraction = nextKeyframe.getFraction();
  final /*Time*/Interpolator interpolator = nextKeyframe.getInterpolator();
  if (interpolator != null) {
    fraction = interpolator.getInterpolation(fraction);
for (int i = 1; i < mNumKeyframes; ++i) {
  FloatKeyframe nextKeyframe = (FloatKeyframe) mKeyframes.get(i);
  if (fraction < nextKeyframe.getFraction()) {
origin: com.willowtreeapps/oak-demos

/**
 * Constructs a Keyframe object with the given time. The value at this time will be derived
 * from the target object when the animation first starts (note that this implies that keyframes
 * with no initial value must be used as part of an {@link ObjectAnimator}).
 * The time defines the
 * time, as a proportion of an overall animation's duration, at which the value will hold true
 * for the animation. The value for the animation between keyframes will be calculated as
 * an interpolation between the values at those keyframes.
 *
 * @param fraction The time, expressed as a value between 0 and 1, representing the fraction
 * of time elapsed of the overall animation duration.
 */
public static Keyframe ofFloat(float fraction) {
  return new FloatKeyframe(fraction);
}
origin: com.actionbarsherlock/actionbarsherlock

/**
 * Constructs a Keyframe object with the given time and value. The time defines the
 * time, as a proportion of an overall animation's duration, at which the value will hold true
 * for the animation. The value for the animation between keyframes will be calculated as
 * an interpolation between the values at those keyframes.
 *
 * @param fraction The time, expressed as a value between 0 and 1, representing the fraction
 * of time elapsed of the overall animation duration.
 * @param value The value that the object will animate to as the animation time approaches
 * the time in this keyframe, and the the value animated from as the time passes the time in
 * this keyframe.
 */
public static Keyframe ofFloat(float fraction, float value) {
  return new FloatKeyframe(fraction, value);
}
origin: com.actionbarsherlock/actionbarsherlock

/**
 * Constructs a Keyframe object with the given time. The value at this time will be derived
 * from the target object when the animation first starts (note that this implies that keyframes
 * with no initial value must be used as part of an {@link ObjectAnimator}).
 * The time defines the
 * time, as a proportion of an overall animation's duration, at which the value will hold true
 * for the animation. The value for the animation between keyframes will be calculated as
 * an interpolation between the values at those keyframes.
 *
 * @param fraction The time, expressed as a value between 0 and 1, representing the fraction
 * of time elapsed of the overall animation duration.
 */
public static Keyframe ofFloat(float fraction) {
  return new FloatKeyframe(fraction);
}
origin: com.willowtreeapps/oak-demos

/**
 * Constructs a Keyframe object with the given time and value. The time defines the
 * time, as a proportion of an overall animation's duration, at which the value will hold true
 * for the animation. The value for the animation between keyframes will be calculated as
 * an interpolation between the values at those keyframes.
 *
 * @param fraction The time, expressed as a value between 0 and 1, representing the fraction
 * of time elapsed of the overall animation duration.
 * @param value The value that the object will animate to as the animation time approaches
 * the time in this keyframe, and the the value animated from as the time passes the time in
 * this keyframe.
 */
public static Keyframe ofFloat(float fraction, float value) {
  return new FloatKeyframe(fraction, value);
}
origin: com.willowtreeapps/oak-demos

  @Override
  public FloatKeyframe clone() {
    FloatKeyframe kfClone = new FloatKeyframe(getFraction(), mValue);
    kfClone.setInterpolator(getInterpolator());
    return kfClone;
  }
}
origin: com.actionbarsherlock/actionbarsherlock

  @Override
  public FloatKeyframe clone() {
    FloatKeyframe kfClone = new FloatKeyframe(getFraction(), mValue);
    kfClone.setInterpolator(getInterpolator());
    return kfClone;
  }
}
com.actionbarsherlock.internal.nineoldandroids.animationKeyframe$FloatKeyframe

Javadoc

Internal subclass used when the keyframe value is of type float.

Most used methods

  • <init>
  • getFloatValue
  • getFraction
  • getInterpolator
  • setInterpolator

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSystemService (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • JComboBox (javax.swing)
  • JLabel (javax.swing)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now