Interface Resampler


  • public interface Resampler
    An interface for classes that resample a multi-size product to a single-size product.
    • Method Detail

      • getName

        String getName()
        Returns the name of the resampler. The Resampler will be visible in the user interface by this name.
        Returns:
        The name of the Resampler.
      • getDescription

        String getDescription()
        Returns a description of the resampler.
        Returns:
        A description of the resampler.
      • canResample

        boolean canResample​(Product multiSizeProduct)
        Performs a check whether the product can be resampled to a single-size product.
        Parameters:
        multiSizeProduct - A product with multiple sizes and/or resolutions.
        Returns:
        true, if the product can be resampled.
      • resample

        Product resample​(Product multiSizeProduct)
        Resamples a multi-size product to a single-size product. This method is responsible for either saving the created product to disk or adding it to the product manager.
        Parameters:
        multiSizeProduct - A product with multiple sizes and/or resolutions.