Class EnhancedImage


  • public class EnhancedImage
    extends Object
    This class allows to build the image to show within the carousel. It contains:
    • title to show: a title to show in the header of the carousel;
    • tooltip : a tooltip shown on image hover event;
    • download url: in case of a file, this field can be used to download it.
    • thumbnailUrl for the thumbnail
    If tooltip/download url/title to show is not specified, its value will be equal to the image url.
    Author:
    Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
    • Constructor Detail

      • EnhancedImage

        public EnhancedImage​(String imageUrl)
        Build an enhanced image from a url.
        Parameters:
        imageUrl - the url of the image.
      • EnhancedImage

        public EnhancedImage​(String downloadUrl,
                             String titleToShow,
                             String toolTipToShow)
        Build an enhanced image from an image but allows to customize the title of the image and its tooltip.
        Parameters:
        image -
        titleToShow -
        toolTipToShow -
      • EnhancedImage

        public EnhancedImage​(String thumbnailUrl,
                             String titleToShow,
                             String toolTipToShow,
                             String downloadUrl)
        Build an enhanced image from an image but allows to customize the other properties.
        Parameters:
        image -
        titleToShow -
        toolTipToShow -
        download - url
    • Method Detail

      • getThumbnailUrl

        public String getThumbnailUrl()
      • setThumbnailUrl

        public void setThumbnailUrl​(String thumbnailUrl)
      • getTitleToShow

        public String getTitleToShow()
      • setTitleToShow

        public void setTitleToShow​(String titleToShow)
      • getToolTipToShow

        public String getToolTipToShow()
      • setToolTipToShow

        public void setToolTipToShow​(String toolTipToShow)
      • getDownloadUrl

        public String getDownloadUrl()
      • setDownloadUrl

        public void setDownloadUrl​(String downloadUrl)
      • getImageUrl

        public String getImageUrl()
      • getOrientation

        public Orientation getOrientation()
        Returns:
        the orientation
      • setOrientation

        public void setOrientation​(Orientation orientation)
        Parameters:
        orientation - the orientation to set