congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
AnimatableNumberValue
Code IndexAdd Tabnine to your IDE (free)

How to use
AnimatableNumberValue
in
org.apache.batik.anim.values

Best Java code snippets using org.apache.batik.anim.values.AnimatableNumberValue (Showing top 20 results out of 315)

origin: org.apache.xmlgraphics/batik-anim

/**
 * Returns a zero value of this AnimatableValue's type.
 */
public AnimatableValue getZeroValue() {
  return new AnimatableNumberValue(target, 0);
}
origin: org.apache.xmlgraphics/batik-anim

  /**
   * Returns the CSS text representation of the value.
   */
  public String getCssText() {
    return formatNumber(value);
  }
}
origin: org.apache.xmlgraphics/batik-anim

  /**
   * Returns the CSS text representation of the value.
   */
  public String getCssText() {
    return super.getCssText() + "%";
  }
}
origin: org.apache.xmlgraphics/batik-anim

/**
 * Performs interpolation to the given value.
 */
public AnimatableValue interpolate(AnimatableValue result,
                  AnimatableValue to,
                  float interpolation,
                  AnimatableValue accumulation,
                  int multiplier) {
  if (result == null) {
    result = new AnimatablePercentageValue(target);
  }
  return super.interpolate
    (result, to, interpolation, accumulation, multiplier);
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Updates the animated value with the given {@link AnimatableValue}.
 */
protected void updateAnimatedValue(AnimatableValue val) {
  if (val == null) {
    hasAnimVal = false;
  } else {
    hasAnimVal = true;
    this.animVal = ((AnimatableNumberValue) val).getValue();
  }
  fireAnimatedAttributeListeners();
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Performs interpolation to the given value.
 */
public AnimatableValue interpolate(AnimatableValue result,
                  AnimatableValue to,
                  float interpolation,
                  AnimatableValue accumulation,
                  int multiplier) {
  if (result == null) {
    result = new AnimatablePercentageValue(target);
  }
  return super.interpolate
    (result, to, interpolation, accumulation, multiplier);
}
origin: org.apache.xmlgraphics/batik-anim

/**
 * Updates the animated value with the given {@link AnimatableValue}.
 */
protected void updateAnimatedValue(AnimatableValue val) {
  if (val == null) {
    hasAnimVal = false;
  } else {
    hasAnimVal = true;
    this.animVal = ((AnimatableNumberValue) val).getValue();
  }
  fireAnimatedAttributeListeners();
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Returns a zero value of this AnimatableValue's type.
 */
public AnimatableValue getZeroValue() {
  return new AnimatableNumberValue(target, 0);
}
origin: fr.avianey.apache-xmlgraphics/batik

  /**
   * Returns the CSS text representation of the value.
   */
  public String getCssText() {
    return super.getCssText() + "%";
  }
}
origin: apache/batik

/**
 * Performs interpolation to the given value.
 */
public AnimatableValue interpolate(AnimatableValue result,
                  AnimatableValue to,
                  float interpolation,
                  AnimatableValue accumulation,
                  int multiplier) {
  if (result == null) {
    result = new AnimatablePercentageValue(target);
  }
  return super.interpolate
    (result, to, interpolation, accumulation, multiplier);
}
origin: fr.avianey.apache-xmlgraphics/batik

  /**
   * Returns the CSS text representation of the value.
   */
  public String getCssText() {
    return formatNumber(value);
  }
}
origin: apache/batik

/**
 * Updates the animated value with the given {@link AnimatableValue}.
 */
protected void updateAnimatedValue(AnimatableValue val) {
  if (val == null) {
    hasAnimVal = false;
  } else {
    hasAnimVal = true;
    this.animVal = ((AnimatableNumberValue) val).getValue();
  }
  fireAnimatedAttributeListeners();
}
origin: apache/batik

/**
 * Returns a zero value of this AnimatableValue's type.
 */
public AnimatableValue getZeroValue() {
  return new AnimatableNumberValue(target, 0);
}
origin: org.apache.xmlgraphics/batik-anim

/**
 * Returns the CSS text representation of the value.
 */
public String getCssText() {
  return super.getCssText() + UNITS[unit];
}
origin: org.apache.xmlgraphics/batik-anim

} else {
  float oldValue = res.value;
  super.interpolate(res, to, interpolation, accumulation,
           multiplier);
  res.numericIdent = false;
  super.interpolate(res, to, interpolation, accumulation,
           multiplier);
  res.numericIdent = false;
origin: apache/batik

  /**
   * Returns the CSS text representation of the value.
   */
  public String getCssText() {
    return formatNumber(value);
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Creates a new AnimatableValue from a string.
 */
public AnimatableValue createValue(AnimationTarget target, String ns,
                  String ln, boolean isCSS, String s) {
  return new AnimatableNumberValue(target, Float.parseFloat(s));
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Returns the CSS text representation of the value.
 */
public String getCssText() {
  return super.getCssText() + UNITS[unit];
}
origin: fr.avianey.apache-xmlgraphics/batik

} else {
  float oldValue = res.value;
  super.interpolate(res, to, interpolation, accumulation,
           multiplier);
  res.numericIdent = false;
  super.interpolate(res, to, interpolation, accumulation,
           multiplier);
  res.numericIdent = false;
origin: org.apache.xmlgraphics/batik-bridge

/**
 * Creates a new AnimatableValue from a string.
 */
public AnimatableValue createValue(AnimationTarget target, String ns,
                  String ln, boolean isCSS, String s) {
  return new AnimatableNumberValue(target, Float.parseFloat(s));
}
org.apache.batik.anim.valuesAnimatableNumberValue

Javadoc

A number value in the animation system.

Most used methods

  • <init>
    Creates a new AnimatableNumberValue.
  • formatNumber
  • getCssText
    Returns the CSS text representation of the value.
  • getValue
    Returns the number value.
  • interpolate
    Performs interpolation to the given value.

Popular in Java

  • Creating JSON documents from java classes using gson
  • putExtra (Intent)
  • getSupportFragmentManager (FragmentActivity)
  • startActivity (Activity)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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