-
public final class Fit.FitHeight extends Fit
Preserve aspect ratio and scale the artboard height to match the containing view's height.
If the aspect ratios between the artboard and containing view do not match, this will result in either horizontal clipping or space in the horizontal axis.
-
-
Field Summary
Fields Modifier and Type Field Description private final Alignmentalignmentprivate final FloatscaleFactor
-
Constructor Summary
Constructors Constructor Description Fit.FitHeight(Alignment alignment)
-
Method Summary
Modifier and Type Method Description AlignmentgetAlignment()FloatgetScaleFactor()Default scale factor. -
-
Constructor Detail
-
Fit.FitHeight
Fit.FitHeight(Alignment alignment)
- Parameters:
alignment- The horizontal 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.
-
-
-
-