/** * Returns a zero value of this AnimatableValue's type. */ public AnimatableValue getZeroValue() { return new AnimatableNumberValue(target, 0); }
/** * Returns a zero value of this AnimatableValue's type. */ public AnimatableValue getZeroValue() { return new AnimatableNumberValue(target, 0); }
/** * Returns a zero value of this AnimatableValue's type. */ public AnimatableValue getZeroValue() { return new AnimatableNumberValue(target, 0); }
/** * 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)); }
/** * 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)); }
/** * 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)); }
/** * Performs interpolation to the given value. */ public AnimatableValue interpolate(AnimatableValue result, AnimatableValue to, float interpolation, AnimatableValue accumulation, int multiplier) { AnimatableNumberValue res; if (result == null) { res = new AnimatableNumberValue(target); } else { res = (AnimatableNumberValue) result; } float v = value; if (to != null) { AnimatableNumberValue toNumber = (AnimatableNumberValue) to; v += interpolation * (toNumber.value - value); } if (accumulation != null) { AnimatableNumberValue accNumber = (AnimatableNumberValue) accumulation; v += multiplier * accNumber.value; } if (res.value != v) { res.value = v; res.hasChanged = true; } return res; }
/** * Performs interpolation to the given value. */ public AnimatableValue interpolate(AnimatableValue result, AnimatableValue to, float interpolation, AnimatableValue accumulation, int multiplier) { AnimatableNumberValue res; if (result == null) { res = new AnimatableNumberValue(target); } else { res = (AnimatableNumberValue) result; } float v = value; if (to != null) { AnimatableNumberValue toNumber = (AnimatableNumberValue) to; v += interpolation * (toNumber.value - value); } if (accumulation != null) { AnimatableNumberValue accNumber = (AnimatableNumberValue) accumulation; v += multiplier * accNumber.value; } if (res.value != v) { res.value = v; res.hasChanged = true; } return res; }
/** * Performs interpolation to the given value. */ public AnimatableValue interpolate(AnimatableValue result, AnimatableValue to, float interpolation, AnimatableValue accumulation, int multiplier) { AnimatableNumberValue res; if (result == null) { res = new AnimatableNumberValue(target); } else { res = (AnimatableNumberValue) result; } float v = value; if (to != null) { AnimatableNumberValue toNumber = (AnimatableNumberValue) to; v += interpolation * (toNumber.value - value); } if (accumulation != null) { AnimatableNumberValue accNumber = (AnimatableNumberValue) accumulation; v += multiplier * accNumber.value; } if (res.value != v) { res.value = v; res.hasChanged = true; } return res; }
/** * Returns the base value of the attribute as an {@link AnimatableValue}. */ public AnimatableValue getUnderlyingValue(AnimationTarget target) { return new AnimatableNumberValue(target, getBaseVal()); }
/** * Creates a new AnimatableValue from a CSS {@link Value}. */ public AnimatableValue createValue(AnimationTarget target, String pn, Value v) { return new AnimatableNumberValue(target, v.getFloatValue()); } }
/** * Creates a new AnimatableValue from a CSS {@link Value}. */ public AnimatableValue createValue(AnimationTarget target, String pn, Value v) { return new AnimatableNumberValue(target, v.getFloatValue()); } }
/** * Returns the base value of the attribute as an {@link AnimatableValue}. */ public AnimatableValue getUnderlyingValue(AnimationTarget target) { return new AnimatableNumberValue(target, getBaseVal()); }
/** * Returns the base value of the attribute as an {@link AnimatableValue}. */ public AnimatableValue getUnderlyingValue(AnimationTarget target) { return new AnimatableNumberValue(target, getBaseVal()); }
/** * Creates a new AnimatableValue from a CSS {@link Value}. */ public AnimatableValue createValue(AnimationTarget target, String pn, Value v) { return new AnimatableNumberValue(target, v.getFloatValue()); } }