Package 

Interface CanvasTransformation

    • Method Summary

      Modifier and Type Method Description
      abstract Matrix calculateTransformation(Matrix outTransform, Rect parentBounds, Integer childWidth, Integer childHeight) Calculate a transformation based on the given parent bounds and child dimensions.
      • Methods inherited from class java.lang.Object

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

      • calculateTransformation

         abstract Matrix calculateTransformation(Matrix outTransform, Rect parentBounds, Integer childWidth, Integer childHeight)

        Calculate a transformation based on the given parent bounds and child dimensions. The given outTransform should be used and returned. If no transformation should be applied, null can be returned.

        Parameters:
        outTransform - the Matrix to re-use
        parentBounds - the bounds to fill
        childWidth - the width of the child to draw
        childHeight - the height of the child to draw