ProgressDomain


public final class ProgressDomain


Dimensions and units for measuring distance/time along the length/duration of a stroke.

This is used for DampingNodes, IntegralNodes, and NoiseNodes to specify the domain over which they operate.

Summary

Public fields

static final @NonNull ProgressDomain

Progress in input distance traveled since the start of the stroke, measured in centimeters.

static final @NonNull ProgressDomain

Progress in input distance traveled since the start of the stroke, measured in multiples of the brush size.

static final @NonNull ProgressDomain

Progress in input time since the start of the stroke, measured in seconds.

Public methods

@NonNull String

Public fields

DISTANCE_IN_CENTIMETERS

public static final @NonNull ProgressDomain DISTANCE_IN_CENTIMETERS

Progress in input distance traveled since the start of the stroke, measured in centimeters. If the stroke input data does not indicate the relationship between stroke units and physical units (e.g. as may be the case for programmatically-generated inputs), then any node relying on this domain will emit null.

DISTANCE_IN_MULTIPLES_OF_BRUSH_SIZE

public static final @NonNull ProgressDomain DISTANCE_IN_MULTIPLES_OF_BRUSH_SIZE

Progress in input distance traveled since the start of the stroke, measured in multiples of the brush size.

TIME_IN_SECONDS

public static final @NonNull ProgressDomain TIME_IN_SECONDS

Progress in input time since the start of the stroke, measured in seconds.

Public methods

toString

public @NonNull String toString()