TargetNode


public final class TargetNode extends TerminalNode


A TerminalNode that consumes a single input to affect a scalar brush tip property.

Summary

Nested types

public final class TargetNode.Target

List of scalar tip properties that can be modified by a androidx.ink.brush.BrushBehavior.

Public constructors

TargetNode(
    @NonNull TargetNode.Target target,
    float targetModifierRangeStart,
    float targetModifierRangeEnd,
    @NonNull ValueNode input
)

Creates a TargetNode that consumes a single input to affect a scalar brush tip property.

Public methods

boolean
equals(Object other)
final @NonNull ValueNode

The input node that produces the value used to affect the target.

final @NonNull TargetNode.Target

The brush tip property to affect.

final float

The end of the range of the input value that should affect the target property.

final float

The start of the range of the input value that should affect the target property.

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

TargetNode

Added in 1.1.0-alpha03
public TargetNode(
    @NonNull TargetNode.Target target,
    float targetModifierRangeStart,
    float targetModifierRangeEnd,
    @NonNull ValueNode input
)

Creates a TargetNode that consumes a single input to affect a scalar brush tip property.

Parameters
@NonNull TargetNode.Target target

the brush tip property to affect

float targetModifierRangeStart

start of the range of the input value that should affect the target property

float targetModifierRangeEnd

end of the range of the input value that should affect the target property

@NonNull ValueNode input

input node that produces the value used to affect the target

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 affect the target.

getTarget

Added in 1.1.0-alpha03
public final @NonNull TargetNode.Target getTarget()

The brush tip property to affect.

getTargetModifierRangeEnd

Added in 1.1.0-alpha03
public final float getTargetModifierRangeEnd()

The end of the range of the input value that should affect the target property.

getTargetModifierRangeStart

Added in 1.1.0-alpha03
public final float getTargetModifierRangeStart()

The start of the range of the input value that should affect the target property.

hashCode

public int hashCode()

toString

public @NonNull String toString()