/** * Sets the {@link ResizerFactory} to use {@link DefaultResizerFactory}. * * @return A reference to this object. * @since 0.4.0 */ public ThumbnailMaker defaultResizerFactory() { this.resizerFactory = DefaultResizerFactory.getInstance(); ready.set(PARAM_RESIZER); ready.set(PARAM_RESIZERFACTORY); return this; }
/** * Sets the {@link Resizer} which is used for the resizing operation. * * @param resizer The {@link Resizer} to use when resizing the image to create the thumbnail. * @return A reference to this object. */ public ThumbnailMaker resizer(Resizer resizer) { this.resizerFactory = new FixedResizerFactory(resizer); ready.set(PARAM_RESIZER); ready.set(PARAM_RESIZERFACTORY); return this; }
/** * Sets the {@link ResizerFactory} which is used to obtain a {@link Resizer} for the resizing * operation. * * @param resizerFactory The {@link ResizerFactory} to obtain the {@link Resizer} used when * resizing the image to create the thumbnail. * @return A reference to this object. * @since 0.4.0 */ public ThumbnailMaker resizerFactory(ResizerFactory resizerFactory) { this.resizerFactory = resizerFactory; ready.set(PARAM_RESIZER); ready.set(PARAM_RESIZERFACTORY); return this; }
/** * Sets the type for the {@link BufferedImage} to produce. * * @param imageType The type of the {@code BufferedImage}. * @return A reference to this object. */ public ThumbnailMaker imageType(int imageType) { this.imageType = imageType; ready.set(PARAM_IMAGE_TYPE); return this; }