-
public final class Fit.Contain extends Fit
Preserve aspect ratio and scale the artboard so that its larger dimension matches the corresponding dimension of the containing view.
If aspect ratios are not identical, this will leave space on the larger axis.
-
-
Field Summary
Fields Modifier and Type Field Description private final Alignmentalignmentprivate final FloatscaleFactor
-
Constructor Summary
Constructors Constructor Description Fit.Contain(Alignment alignment)
-
Method Summary
Modifier and Type Method Description AlignmentgetAlignment()FloatgetScaleFactor()Default scale factor. -
-
Constructor Detail
-
Fit.Contain
Fit.Contain(Alignment alignment)
- Parameters:
alignment- The alignment of the artboard within the containing view.
-
-
Method Detail
-
getAlignment
Alignment getAlignment()
-
getScaleFactor
Float getScaleFactor()
Default scale factor. Only relevant with Fit.Layout, but still passed when drawing or on pointer events.
-
-
-
-