InProgressShapeRenderer


public interface InProgressShapeRenderer<InProgressShapeT extends InProgressShape<@NonNull ?, @NonNull ?>>


Implement this interface to render an InProgressShape.

Summary

Public methods

abstract void
draw(
    @NonNull Canvas canvas,
    @NonNull InProgressShapeT shape,
    @NonNull Matrix strokeToScreenTransform
)

Draw the given InProgressShape onto the provided Canvas, with the given transform.

Public methods

draw

Added in 1.0.0-beta02
abstract void draw(
    @NonNull Canvas canvas,
    @NonNull InProgressShapeT shape,
    @NonNull Matrix strokeToScreenTransform
)

Draw the given InProgressShape onto the provided Canvas, with the given transform. This will be called on the render thread.

Parameters
@NonNull Canvas canvas

The Canvas to draw to.

@NonNull InProgressShapeT shape

The InProgressShape to draw.

@NonNull Matrix strokeToScreenTransform

A Matrix to transform the InProgressShape from its local coordinate space to the screen coordinate space.