Class DefaultInterpolator
java.lang.Object
com.github.weisj.jsvg.animation.interpolation.DefaultInterpolator
- All Implemented Interfaces:
FloatInterpolator,FloatListInterpolator,PaintInterpolator,TransformInterpolator
public final class DefaultInterpolator
extends Object
implements FloatInterpolator, FloatListInterpolator, PaintInterpolator, TransformInterpolator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat @NotNull []interpolate(float @NotNull [] initial, float @NotNull [] a, float @Nullable [] b, float progress, float @Nullable [] cache) floatinterpolate(float initial, float a, float b, float progress) @NotNull SVGPaintinterpolate(@NotNull SVGPaint initial, @NotNull SVGPaint a, @NotNull SVGPaint b, float progress) @NotNull AffineTransforminterpolate(@NotNull MeasureContext context, @NotNull TransformValue initial, @NotNull TransformPart a, @NotNull TransformPart b, float progress)
-
Constructor Details
-
DefaultInterpolator
-
-
Method Details
-
interpolate
public float interpolate(float initial, float a, float b, float progress) - Specified by:
interpolatein interfaceFloatInterpolator
-
interpolate
public float @NotNull [] interpolate(float @NotNull [] initial, float @NotNull [] a, float @Nullable [] b, float progress, float @Nullable [] cache) - Specified by:
interpolatein interfaceFloatListInterpolator
-
interpolate
@NotNull public @NotNull SVGPaint interpolate(@NotNull @NotNull SVGPaint initial, @NotNull @NotNull SVGPaint a, @NotNull @NotNull SVGPaint b, float progress) - Specified by:
interpolatein interfacePaintInterpolator
-
interpolate
@NotNull public @NotNull AffineTransform interpolate(@NotNull @NotNull MeasureContext context, @NotNull @NotNull TransformValue initial, @NotNull @NotNull TransformPart a, @NotNull @NotNull TransformPart b, float progress) - Specified by:
interpolatein interfaceTransformInterpolator
-