Class DefaultResizerFactory

    • Constructor Detail

      • DefaultResizerFactory

        private DefaultResizerFactory()
        This class is not intended to be instantiated via the constructor.
    • Method Detail

      • getInstance

        public static ResizerFactory getInstance()
        Returns an instance of this class.
        Returns:
        An instance of this class.
      • getResizer

        public Resizer getResizer​(java.awt.Dimension originalSize,
                                  java.awt.Dimension thumbnailSize)
        Description copied from interface: ResizerFactory
        Returns a suitable Resizer, given the Dimensions of the original image and the thumbnail image.
        Specified by:
        getResizer in interface ResizerFactory
        Parameters:
        originalSize - The size of the original image.
        thumbnailSize - The size of the thumbnail.
        Returns:
        The suitable Resizer to perform the resizing operation for the given condition.