DimensionBuilders.ProportionalDimensionProp.Builder

public final class DimensionBuilders.ProportionalDimensionProp.Builder implements DimensionBuilders.ImageDimension.Builder


Builder for ProportionalDimensionProp.

Summary

Public constructors

Public methods

@Override @NonNull DimensionBuilders.ProportionalDimensionProp

Builds an instance with values accumulated in this Builder.

@NonNull DimensionBuilders.ProportionalDimensionProp.Builder
setAspectRatioHeight(@IntRange(from = 0) int aspectRatioHeight)

Sets the height to be used when calculating the aspect ratio ratio to preserve.

@NonNull DimensionBuilders.ProportionalDimensionProp.Builder
setAspectRatioWidth(@IntRange(from = 0) int aspectRatioWidth)

Sets the width to be used when calculating the aspect ratio to preserve.

Public constructors

Builder

public Builder()

Public methods

build

@Override
public @NonNull DimensionBuilders.ProportionalDimensionProp build()

Builds an instance with values accumulated in this Builder.

setAspectRatioHeight

public @NonNull DimensionBuilders.ProportionalDimensionProp.Builder setAspectRatioHeight(@IntRange(from = 0) int aspectRatioHeight)

Sets the height to be used when calculating the aspect ratio ratio to preserve.

setAspectRatioWidth

public @NonNull DimensionBuilders.ProportionalDimensionProp.Builder setAspectRatioWidth(@IntRange(from = 0) int aspectRatioWidth)

Sets the width to be used when calculating the aspect ratio to preserve.