DimensionBuilders.BoundingBoxRatio


@RequiresSchemaVersion(major = 1, minor = 400)
public final class DimensionBuilders.BoundingBoxRatio implements DimensionBuilders.PivotDimension


Provide a position representation proportional to the bounding box width/height.

Summary

Nested types

Builder for BoundingBoxRatio.

Public methods

@NonNull TypeBuilders.FloatProp

Gets 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.

@NonNull String

Public methods

getRatio

Added in 1.2.0-alpha02
public @NonNull TypeBuilders.FloatProp getRatio()

Gets 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.

toString

public @NonNull String toString()