PolarTargetNode


public final class PolarTargetNode extends TerminalNode


A TerminalNode that consumes two inputs, an angle and a magnitude, to affect a vector brush tip property.

Summary

Nested types

public final class PolarTargetNode.PolarTarget

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

Public constructors

PolarTargetNode(
    @NonNull PolarTargetNode.PolarTarget target,
    float angleRangeStart,
    float angleRangeEnd,
    @NonNull ValueNode angleInput,
    float magnitudeRangeStart,
    float magnitudeRangeEnd,
    @NonNull ValueNode magnitudeInput
)

Creates a PolarTargetNode that consumes two inputs, an angle and a magnitude, to affect a vector brush tip property.

Public methods

boolean
equals(Object other)
final @NonNull ValueNode

The input node that produces the value used to affect the angle of the target vector property.

final float

The end of the angle range for the target property.

final float

The start of the angle range for the target property.

final @NonNull ValueNode

The input node that produces the value used to affect the magnitude of the target vector property.

final float

The end of the magnitude range for the target property.

final float

The start of the magnitude range for the target property.

final @NonNull PolarTargetNode.PolarTarget

The vector brush tip property to affect.

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

PolarTargetNode

Added in 1.1.0-alpha03
public PolarTargetNode(
    @NonNull PolarTargetNode.PolarTarget target,
    float angleRangeStart,
    float angleRangeEnd,
    @NonNull ValueNode angleInput,
    float magnitudeRangeStart,
    float magnitudeRangeEnd,
    @NonNull ValueNode magnitudeInput
)

Creates a PolarTargetNode that consumes two inputs, an angle and a magnitude, to affect a vector brush tip property.

Parameters
@NonNull PolarTargetNode.PolarTarget target

vector brush tip property to affect

float angleRangeStart

start of the angle range for the target property

float angleRangeEnd

end of the angle range for the target property

@NonNull ValueNode angleInput

input node that produces the value used to affect the angle of the target vector property

float magnitudeRangeStart

start of the magnitude range for the target property

float magnitudeRangeEnd

end of the magnitude range for the target property

@NonNull ValueNode magnitudeInput

input node that produces the value used to affect the magnitude of the target vector property

Public methods

equals

public boolean equals(Object other)

getAngleInput

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

The input node that produces the value used to affect the angle of the target vector property.

getAngleRangeEnd

Added in 1.1.0-alpha03
public final float getAngleRangeEnd()

The end of the angle range for the target property.

getAngleRangeStart

Added in 1.1.0-alpha03
public final float getAngleRangeStart()

The start of the angle range for the target property.

getMagnitudeInput

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

The input node that produces the value used to affect the magnitude of the target vector property.

getMagnitudeRangeEnd

Added in 1.1.0-alpha03
public final float getMagnitudeRangeEnd()

The end of the magnitude range for the target property.

getMagnitudeRangeStart

Added in 1.1.0-alpha03
public final float getMagnitudeRangeStart()

The start of the magnitude range for the target property.

getTarget

Added in 1.1.0-alpha03
public final @NonNull PolarTargetNode.PolarTarget getTarget()

The vector brush tip property to affect.

hashCode

public int hashCode()

toString

public @NonNull String toString()