Interface ImageSizeModel


  • public interface ImageSizeModel
    This class provides the interface for a size model. A size model is a definition of possible sizes (width and height) of an image. When a size model is associated with an image, the editor may choose one of the predefined sizes (width and height combination) of the sizemodel.
    Author:
    ivol
    • Method Detail

      • getId

        int getId()
        Returns the id of this image size model.
        Returns:
        the id of this image size model
      • getTitle

        String getTitle()
        Returns the title of this image size model.
        Returns:
        the title of this image size model
      • setTitle

        void setTitle​(String title)
        Sets the title of this image size model.
        Parameters:
        title - the title of this image size model to set
      • getImageSizes

        ImageSize[] getImageSizes()
        Returns an array of all image sizes defined by this image size model.
        Returns:
        an array of all image sizes defined by this image size model
      • setImageSizes

        void setImageSizes​(ImageSize[] imageSizes)
        Sets the image sizes associated with this image size model.
        Parameters:
        imageSizes - image sizes associated with this image size model to set