DimensionBuilders.ProportionalDimensionProp.Builder

Added in 1.0.0
Deprecated in 1.2.0

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


Builder for ProportionalDimensionProp.

Summary

Public constructors

Public methods

@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

Added in 1.0.0
Deprecated in 1.2.0
public Builder()

Public methods

build

Added in 1.5.0-alpha05
Deprecated in 1.5.0-alpha05
public @NonNull DimensionBuilders.ProportionalDimensionProp build()

Builds an instance with values accumulated in this Builder.

setAspectRatioHeight

Added in 1.0.0
Deprecated in 1.2.0
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

Added in 1.0.0
Deprecated in 1.2.0
public @NonNull DimensionBuilders.ProportionalDimensionProp.Builder setAspectRatioWidth(@IntRange(from = 0) int aspectRatioWidth)

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