Interface ResizerFactory
-
- All Known Implementing Classes:
DefaultResizerFactory,FixedResizerFactory
public interface ResizerFactoryThis interface is implemented by all classes which will return aResizerthat should be used when creating a thumbnail.- Since:
- 0.4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResizergetResizer()Returns the defaultResizer.ResizergetResizer(java.awt.Dimension originalSize, java.awt.Dimension thumbnailSize)Returns a suitableResizer, given theDimensions of the original image and the thumbnail image.
-
-
-
Method Detail
-
getResizer
Resizer getResizer(java.awt.Dimension originalSize, java.awt.Dimension thumbnailSize)
Returns a suitableResizer, given theDimensions 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
Resizerto perform the resizing operation for the given condition.
-
-