DimensionBuilders.ProportionalDimensionProp.Builder

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


Builder for ProportionalDimensionProp.

Summary

Public methods

@Override @NonNull DimensionBuilders.ProportionalDimensionProp

Builds an instance with values accumulated in this Builder.

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

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

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

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

Public methods

build

@Override
@NonNull
public @Override DimensionBuilders.ProportionalDimensionProp build()

Builds an instance with values accumulated in this Builder.

setAspectRatioHeight

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

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

setAspectRatioWidth

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

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