/** * Performs interpolation to the given value. */ public AnimatableValue interpolate(AnimatableValue result, AnimatableValue to, float interpolation, AnimatableValue accumulation, int multiplier) { if (result == null) { result = new AnimatablePointListValue(target); } return super.interpolate (result, to, interpolation, accumulation, multiplier); }
/** * Returns the underlying value of the animated attribute. Used for * composition of additive animations. */ public AnimatableValue getUnderlyingValue() { return new AnimatableMotionPointValue(animationTarget, 0f, 0f, 0f); }
/** * 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); }
/** * Creates a new AnimatablePaintValue for a 'currentColor' value. */ public static AnimatablePaintValue createCurrentColorPaintValue (AnimationTarget target) { AnimatablePaintValue v = new AnimatablePaintValue(target); v.paintType = PAINT_CURRENT_COLOR; return v; }
/** * Returns a zero value of this AnimatableValue's type. */ public AnimatableValue getZeroValue() { return new AnimatableLengthValue (target, SVGLength.SVG_LENGTHTYPE_NUMBER, 0f, percentageInterpretation); }
/** * Returns a zero value of this AnimatableValue's type. */ public AnimatableValue getZeroValue() { return new AnimatableRectValue(target, 0f, 0f, 0f, 0f); }
/** * Returns a zero value of this AnimatableValue's type. */ public AnimatableValue getZeroValue() { return new AnimatableColorValue(target, 0f, 0f, 0f); }
/** * Returns a zero value of this AnimatableValue's type. */ public AnimatableValue getZeroValue() { return new AnimatableNumberOrIdentValue(target, 0f, numericIdent); }
/** * Returns a zero value of this AnimatableValue's type. */ public AnimatableValue getZeroValue() { return new AnimatableAngleValue (target, 0, SVGAngle.SVG_ANGLETYPE_UNSPECIFIED); }
/** * Returns the CSS text representation of the value. */ public String getCssText() { return super.getCssText() + UNITS[unit]; }
/** * Returns the CSS text representation of the value. */ public String getCssText() { if (isIdent) { return ident; } return super.getCssText(); }
/** * Returns whether the specified {@link AnimatableValue} is of a type allowed * by this animation. */ protected boolean checkValueType(AnimatableValue v) { if (v instanceof AnimatablePaintValue) { return ((AnimatablePaintValue) v).getPaintType() == AnimatablePaintValue.PAINT_COLOR; } return v instanceof AnimatableColorValue; } }
/** * Returns the CSS text representation of the value. */ public String getCssText() { return formatNumber(value); } }
/** * Performs interpolation to the given value. */ public AnimatableValue interpolate(AnimatableValue result, AnimatableValue to, float interpolation, AnimatableValue accumulation, int multiplier) { if (result == null) { result = new AnimatablePointListValue(target); } return super.interpolate (result, to, interpolation, accumulation, multiplier); }
/** * Creates a new AnimatablePaintValue for a URI reference with a * 'none' fallback. */ public static AnimatablePaintValue createURINonePaintValue (AnimationTarget target, String uri) { AnimatablePaintValue v = new AnimatablePaintValue(target); v.uri = uri; v.paintType = PAINT_URI_NONE; return v; }
/** * Returns a zero value of this AnimatableValue's type. */ public AnimatableValue getZeroValue() { return new AnimatableMotionPointValue(target, 0f, 0f, 0f); }
/** * Returns the CSS text representation of the value. */ public String getCssText() { return super.getCssText() + "%"; } }
/** * Creates a new AnimatablePaintValue for a 'inherit' value. */ public static AnimatablePaintValue createInheritPaintValue (AnimationTarget target) { AnimatablePaintValue v = new AnimatablePaintValue(target); v.paintType = PAINT_INHERIT; return v; }
/** * Creates a new AnimatablePaintValue for a 'none' value. */ public static AnimatablePaintValue createNonePaintValue (AnimationTarget target) { AnimatablePaintValue v = new AnimatablePaintValue(target); v.paintType = PAINT_NONE; return v; }
/** * Creates a new AnimatablePaintValue for a color value. */ public static AnimatablePaintValue createColorPaintValue (AnimationTarget target, float r, float g, float b) { AnimatablePaintValue v = new AnimatablePaintValue(target, r, g, b); v.paintType = PAINT_COLOR; return v; }