ResponseNode


public final class ResponseNode extends ValueNode


A ValueNode that maps an input value through a response curve.

Summary

Public constructors

ResponseNode(
    @NonNull EasingFunction responseCurve,
    @NonNull ValueNode input
)

Creates a ResponseNode that maps an input value through a response curve.

Public methods

boolean
equals(Object other)
final @NonNull ValueNode

The input node that produces the value used to map through the response curve.

final @NonNull EasingFunction
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

ResponseNode

Added in 1.1.0-alpha03
public ResponseNode(
    @NonNull EasingFunction responseCurve,
    @NonNull ValueNode input
)

Creates a ResponseNode that maps an input value through a response curve.

Parameters
@NonNull EasingFunction responseCurve

the response curve to apply to the input value

@NonNull ValueNode input

input node that produces the value used to map through the response curve

Public methods

equals

public boolean equals(Object other)

getInput

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

The input node that produces the value used to map through the response curve.

getResponseCurve

Added in 1.1.0-alpha03
public final @NonNull EasingFunction getResponseCurve()

hashCode

public int hashCode()

toString

public @NonNull String toString()