Package 

Class Fit.Contain


  • 
    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.

    • Method Summary

      Modifier and Type Method Description
      Alignment getAlignment()
      Float getScaleFactor() Default scale factor.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Fit.Contain

        Fit.Contain(Alignment alignment)
        Parameters:
        alignment - The alignment of the artboard within the containing view.