Interface InternalImage

  • All Superinterfaces:
    Image

    public interface InternalImage
    extends Image
    Setters for Image.
    See Also:
    Image
    • Method Detail

      • setUrl

        void setUrl​(String source)
        Set the relative image source url.
        Parameters:
        source - The relative url to the image
      • setAlign

        void setAlign​(String align)
        Set align attribute.
        Parameters:
        align -
      • setWebsite

        void setWebsite​(Website website)
        Set the website owner.
        Parameters:
        website -
      • setAlternativeText

        void setAlternativeText​(String text)
        Set alt text.
        Parameters:
        text -
      • setRequest

        void setRequest​(javax.servlet.http.HttpServletRequest request)
        Set request.
        Parameters:
        request -
      • setFocusPointX

        void setFocusPointX​(int focusPointX)
        Set the focus point X value or -1 when not set.
        Parameters:
        focusPointX - The focus point X value.
      • setFocusPointY

        void setFocusPointY​(int focusPointY)
        Set the focus point Y value or -1 when not set.
        Parameters:
        focusPointX - The focus point Y value.
      • getResizedImage

        Image getResizedImage​(int width,
                              int height,
                              float quality)
        Resize an image. This resizes this image to the new dimensions exactly. It doesn't do anything to preserve aspect ratios.
        Parameters:
        width - New width
        height - New height
        quality - compression level must be a value between 0 and 1 and -1 for the default. See ImageUtil
        Returns:
        The new resized image.
      • getResizedImage

        Image getResizedImage​(int width,
                              int height,
                              float quality,
                              boolean progressive)
        Resize an image. This resizes this image to the new dimensions exactly. It doesn't do anything to preserve aspect ratios.
        Parameters:
        width - New width
        height - New height
        quality - compression level must be a value between 0 and 1 and -1 for the default. See ImageUtil
        progressive - Whether a progressive image should be returned when possible
        Returns:
        The new resized image.
      • getSizedImage

        Image getSizedImage​(int width,
                            int height,
                            float quality)
        Returns the cropped image for a particular size.
        Parameters:
        width - resize the image to this width
        height - resize the image to this height
        quality - compression level must be a value between 0 and 1 and -1 for the default. See ImageUtil
        Returns:
        the image for a particular size
      • getSizedImage

        Image getSizedImage​(int width,
                            int height,
                            float quality,
                            boolean progressive)
        Returns the cropped image for a particular size.
        Parameters:
        width - resize the image to this width
        height - resize the image to this height
        quality - compression level must be a value between 0 and 1 and -1 for the default. See ImageUtil
        progressive - Whether a progressive image should be returned when possible
        Returns:
        the image for a particular size