Class ReplacedElementScaleHelper


  • public class ReplacedElementScaleHelper
    extends Object
    • Constructor Detail

      • ReplacedElementScaleHelper

        public ReplacedElementScaleHelper()
    • Method Detail

      • createScaleTransform

        public static AffineTransform createScaleTransform​(double dotsPerPixel,
                                                           Rectangle contentBounds,
                                                           float width,
                                                           float height)
        Creates a scale AffineTransform to scale a given replaced element to the desired size.
        Parameters:
        dotsPerPixel -
        contentBounds - the desired size
        width - the intrinsic width
        height - the intrinsic height
        Returns:
        AffineTransform or null if not available.