LayoutElementBuilders.StrokeCapProp.Builder


public final class LayoutElementBuilders.StrokeCapProp.Builder


Builder for StrokeCapProp

Summary

Public constructors

@RequiresSchemaVersion(major = 1, minor = 200)
Builder()

Creates an instance of Builder.

Public methods

@NonNull LayoutElementBuilders.StrokeCapProp

Builds an instance from accumulated values.

@NonNull LayoutElementBuilders.StrokeCapProp.Builder
@RequiresSchemaVersion(major = 1, minor = 300)
setShadow(@NonNull ModifiersBuilders.Shadow shadow)

Sets the stroke cap's shadow.

@NonNull LayoutElementBuilders.StrokeCapProp.Builder
@RequiresSchemaVersion(major = 1, minor = 200)
setValue(int value)

Sets the value.

Public constructors

Builder

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
public Builder()

Creates an instance of Builder.

Public methods

build

Added in 1.0.0
public @NonNull LayoutElementBuilders.StrokeCapProp build()

Builds an instance from accumulated values.

setShadow

Added in 1.1.0
@RequiresSchemaVersion(major = 1, minor = 300)
public @NonNull LayoutElementBuilders.StrokeCapProp.Builder setShadow(@NonNull ModifiersBuilders.Shadow shadow)

Sets the stroke cap's shadow. When set, the stroke cap will be drawn with a shadow, which allows it to be visible on top of other similarly colored elements.

Only opaque colors are supported in ArcLine if a shadow is set. Any transparent colors will have their alpha component set to 0xFF (opaque).

setValue

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
public @NonNull LayoutElementBuilders.StrokeCapProp.Builder setValue(int value)

Sets the value.