Interface ResizerFactory

  • All Known Implementing Classes:
    DefaultResizerFactory, FixedResizerFactory

    public interface ResizerFactory
    This interface is implemented by all classes which will return a Resizer that should be used when creating a thumbnail.
    Since:
    0.4.0
    • Method Detail

      • getResizer

        Resizer getResizer()
        Returns the default Resizer.
        Returns:
        The default Resizer.
      • getResizer

        Resizer getResizer​(java.awt.Dimension originalSize,
                           java.awt.Dimension thumbnailSize)
        Returns a suitable Resizer, given the Dimensions of the original image and the thumbnail image.
        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.