-
public final class Fit.ScaleDown extends Fit
Preserve aspect ratio and behave like Fit.Contain when the artboard is larger than the containing view. Otherwise, use the artboard's original dimensions.
-
-
Field Summary
Fields Modifier and Type Field Description private final Alignmentalignmentprivate final FloatscaleFactor
-
Constructor Summary
Constructors Constructor Description Fit.ScaleDown(Alignment alignment)
-
Method Summary
Modifier and Type Method Description AlignmentgetAlignment()FloatgetScaleFactor()Default scale factor. -
-
Constructor Detail
-
Fit.ScaleDown
Fit.ScaleDown(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.
-
-
-
-