ModifiersBuilders.Corner.Builder


public final class ModifiersBuilders.Corner.Builder


Builder for Corner

Summary

Public constructors

Creates an instance of Builder.

Public methods

@NonNull ModifiersBuilders.Corner

Builds an instance from accumulated values.

@NonNull ModifiersBuilders.Corner.Builder
@RequiresSchemaVersion(major = 1, minor = 400)
setBottomLeftRadius(
    @NonNull ModifiersBuilders.CornerRadius bottomLeftRadius
)

Sets the radius for the bottom-left corner of either circular or elliptical shapes.

@NonNull ModifiersBuilders.Corner.Builder
@RequiresSchemaVersion(major = 1, minor = 400)
setBottomLeftRadius(
    @NonNull DimensionBuilders.DpProp xRadius,
    @NonNull DimensionBuilders.DpProp yRadius
)

Sets the radius for the bottom-left corner of either circular or elliptical shapes.

@NonNull ModifiersBuilders.Corner.Builder
@RequiresSchemaVersion(major = 1, minor = 400)
setBottomRightRadius(
    @NonNull ModifiersBuilders.CornerRadius bottomRightRadius
)

Sets the radius for the bottom-right corner of either circular or elliptical shapes.

@NonNull ModifiersBuilders.Corner.Builder
@RequiresSchemaVersion(major = 1, minor = 400)
setBottomRightRadius(
    @NonNull DimensionBuilders.DpProp xRadius,
    @NonNull DimensionBuilders.DpProp yRadius
)

Sets the radius for the bottom-right corner of either circular or elliptical shapes.

@NonNull ModifiersBuilders.Corner.Builder

Sets the radius of the corner in DP.

@NonNull ModifiersBuilders.Corner.Builder

Sets the radius for the top-left corner of either circular or elliptical shapes.

@NonNull ModifiersBuilders.Corner.Builder
@RequiresSchemaVersion(major = 1, minor = 400)
setTopLeftRadius(
    @NonNull DimensionBuilders.DpProp xRadius,
    @NonNull DimensionBuilders.DpProp yRadius
)

Sets the radius for the top-left corner of either circular or elliptical shapes.

@NonNull ModifiersBuilders.Corner.Builder
@RequiresSchemaVersion(major = 1, minor = 400)
setTopRightRadius(
    @NonNull ModifiersBuilders.CornerRadius topRightRadius
)

Sets the radius for the top-right corner of either circular or elliptical shapes.

@NonNull ModifiersBuilders.Corner.Builder
@RequiresSchemaVersion(major = 1, minor = 400)
setTopRightRadius(
    @NonNull DimensionBuilders.DpProp xRadius,
    @NonNull DimensionBuilders.DpProp yRadius
)

Sets the radius for the top-right corner of either circular or elliptical shapes.

Public constructors

Builder

Added in 1.0.0
public Builder()

Creates an instance of Builder.

Public methods

build

Added in 1.0.0
public @NonNull ModifiersBuilders.Corner build()

Builds an instance from accumulated values.

setBottomLeftRadius

Added in 1.2.0
@RequiresSchemaVersion(major = 1, minor = 400)
public @NonNull ModifiersBuilders.Corner.Builder setBottomLeftRadius(
    @NonNull ModifiersBuilders.CornerRadius bottomLeftRadius
)

Sets the radius for the bottom-left corner of either circular or elliptical shapes. If not set, defaults to radius for both horizontal and vertical axes when radius is set; or defaults to zeros when radius is also not set.

setBottomLeftRadius

Added in 1.2.0
@RequiresSchemaVersion(major = 1, minor = 400)
public @NonNull ModifiersBuilders.Corner.Builder setBottomLeftRadius(
    @NonNull DimensionBuilders.DpProp xRadius,
    @NonNull DimensionBuilders.DpProp yRadius
)

Sets the radius for the bottom-left corner of either circular or elliptical shapes. If not set, defaults to radius for both horizontal and vertical axes when radius is set; or defaults to zeros when radius is also not set.

setBottomRightRadius

Added in 1.2.0
@RequiresSchemaVersion(major = 1, minor = 400)
public @NonNull ModifiersBuilders.Corner.Builder setBottomRightRadius(
    @NonNull ModifiersBuilders.CornerRadius bottomRightRadius
)

Sets the radius for the bottom-right corner of either circular or elliptical shapes. If not set, defaults to radius for both horizontal and vertical axes when radius is set; or defaults to zeros when radius is also not set.

setBottomRightRadius

Added in 1.2.0
@RequiresSchemaVersion(major = 1, minor = 400)
public @NonNull ModifiersBuilders.Corner.Builder setBottomRightRadius(
    @NonNull DimensionBuilders.DpProp xRadius,
    @NonNull DimensionBuilders.DpProp yRadius
)

Sets the radius for the bottom-right corner of either circular or elliptical shapes. If not set, defaults to radius for both horizontal and vertical axes when radius is set; or defaults to zeros when radius is also not set.

setRadius

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
public @NonNull ModifiersBuilders.Corner.Builder setRadius(@NonNull DimensionBuilders.DpProp radius)

Sets the radius of the corner in DP.

The shape for a specific corner can be overridden by setting that corner separately.

Note that this field only supports static values.

setTopLeftRadius

Added in 1.2.0
@RequiresSchemaVersion(major = 1, minor = 400)
public @NonNull ModifiersBuilders.Corner.Builder setTopLeftRadius(@NonNull ModifiersBuilders.CornerRadius topLeftRadius)

Sets the radius for the top-left corner of either circular or elliptical shapes. If not set, defaults to radius for both horizontal and vertical axes when radius is set; or defaults to zeros when radius is also not set.

setTopLeftRadius

Added in 1.2.0
@RequiresSchemaVersion(major = 1, minor = 400)
public @NonNull ModifiersBuilders.Corner.Builder setTopLeftRadius(
    @NonNull DimensionBuilders.DpProp xRadius,
    @NonNull DimensionBuilders.DpProp yRadius
)

Sets the radius for the top-left corner of either circular or elliptical shapes. If not set, defaults to radius for both horizontal and vertical axes when radius is set; or defaults to zeros when radius is also not set.

setTopRightRadius

Added in 1.2.0
@RequiresSchemaVersion(major = 1, minor = 400)
public @NonNull ModifiersBuilders.Corner.Builder setTopRightRadius(
    @NonNull ModifiersBuilders.CornerRadius topRightRadius
)

Sets the radius for the top-right corner of either circular or elliptical shapes. If not set, defaults to radius for both horizontal and vertical axes when radius is set; or defaults to zeros when radius is also not set.

setTopRightRadius

Added in 1.2.0
@RequiresSchemaVersion(major = 1, minor = 400)
public @NonNull ModifiersBuilders.Corner.Builder setTopRightRadius(
    @NonNull DimensionBuilders.DpProp xRadius,
    @NonNull DimensionBuilders.DpProp yRadius
)

Sets the radius for the top-right corner of either circular or elliptical shapes. If not set, defaults to radius for both horizontal and vertical axes when radius is set; or defaults to zeros when radius is also not set.