DimensionBuilders.BoundingBoxRatio.Builder


public final class DimensionBuilders.BoundingBoxRatio.Builder


Builder for BoundingBoxRatio.

Summary

Public constructors

@RequiresSchemaVersion(major = 1, minor = 400)
Builder(@NonNull TypeBuilders.FloatProp ratio)

Creates an instance of Builder.

Public methods

@NonNull DimensionBuilders.BoundingBoxRatio

Builds an instance from accumulated values.

Public constructors

Builder

Added in 1.2.0-alpha02
@RequiresSchemaVersion(major = 1, minor = 400)
public Builder(@NonNull TypeBuilders.FloatProp ratio)

Creates an instance of Builder.

Parameters
@NonNull TypeBuilders.FloatProp ratio

the ratio proportional to the bounding box width/height. value 0 represents the location at the top / left of the bounding box and value 1 represents the location at the bottom / end of the bounding box. Its default value 0.5 represents the middle of the bounding box. Values outside [0, 1] are also valid. Dynamic value is supported.

Public methods

build

Added in 1.2.0-alpha02
public @NonNull DimensionBuilders.BoundingBoxRatio build()

Builds an instance from accumulated values.