InterpolationNode


public final class InterpolationNode extends ValueNode


A ValueNode that interpolates between two inputs based on a parameter input. The specific kind of interpolation performed depends on the Interpolation parameter.

Summary

Nested types

Interpolation functions for use in an InterpolationNode.

Public constructors

InterpolationNode(
    @NonNull InterpolationNode.Interpolation interpolation,
    @NonNull ValueNode paramInput,
    @NonNull ValueNode startInput,
    @NonNull ValueNode endInput
)

Creates an InterpolationNode that interpolates between two inputs based on a parameter input.

Public methods

boolean
equals(Object other)
final @NonNull ValueNode

The input node that produces the ending value for the interpolation.

final @NonNull InterpolationNode.Interpolation

The kind of interpolation to perform.

final @NonNull ValueNode

The input node that produces the parameter value used to interpolate between the start and end inputs.

final @NonNull ValueNode

The input node that produces the starting value for the interpolation.

int
@NonNull String

Inherited methods

From androidx.ink.brush.behavior.Node
final @NonNull List<@NonNull ValueNode>

The ordered list of inputs that this node directly depends on.

Public constructors

InterpolationNode

Added in 1.1.0-alpha03
public InterpolationNode(
    @NonNull InterpolationNode.Interpolation interpolation,
    @NonNull ValueNode paramInput,
    @NonNull ValueNode startInput,
    @NonNull ValueNode endInput
)

Creates an InterpolationNode that interpolates between two inputs based on a parameter input. The specific kind of interpolation performed depends on the Interpolation parameter.

Parameters
@NonNull InterpolationNode.Interpolation interpolation

the kind of interpolation to perform

@NonNull ValueNode paramInput

input node that produces the parameter value used to interpolate between the start and end inputs

@NonNull ValueNode startInput

input node that produces the starting value for the interpolation

@NonNull ValueNode endInput

input node that produces the ending value for the interpolation

Public methods

equals

public boolean equals(Object other)

getEndInput

Added in 1.1.0-alpha03
public final @NonNull ValueNode getEndInput()

The input node that produces the ending value for the interpolation.

getInterpolation

Added in 1.1.0-alpha03
public final @NonNull InterpolationNode.Interpolation getInterpolation()

The kind of interpolation to perform.

getParamInput

Added in 1.1.0-alpha03
public final @NonNull ValueNode getParamInput()

The input node that produces the parameter value used to interpolate between the start and end inputs.

getStartInput

Added in 1.1.0-alpha03
public final @NonNull ValueNode getStartInput()

The input node that produces the starting value for the interpolation.

hashCode

public int hashCode()

toString

public @NonNull String toString()