Class Image

    • Constructor Detail

      • Image

        public Image()
    • Method Detail

      • getWidth

        public java.lang.Integer getWidth()
        Returns:
        Width of the image (for non-proportionally scaling).
      • setWidth

        public void setWidth​(java.lang.Integer width)
        Parameters:
        width - Width of the image (for non-proportionally scaling).
      • getHeight

        public java.lang.Integer getHeight()
        Returns:
        Height of the image (for non-proportionally scaling).
      • setHeight

        public void setHeight​(java.lang.Integer height)
        Parameters:
        height - Height of the image (for non-proportionally scaling).
      • getMaxWidth

        public java.lang.Integer getMaxWidth()
        Returns:
        Maximum width of the image (for proportionally scaling).
      • setMaxWidth

        public void setMaxWidth​(java.lang.Integer maxWidth)
        Parameters:
        maxWidth - Maximum width of the image (for proportionally scaling).
      • getMaxHeight

        public java.lang.Integer getMaxHeight()
        Returns:
        Maximum height of the image (for proportionally scaling).
      • setMaxHeight

        public void setMaxHeight​(java.lang.Integer maxHeight)
        Parameters:
        maxHeight - Maximum height of the image (for proportionally scaling).
      • getAltText

        public java.lang.String getAltText()
        Returns:
        Text displayed when the image can't be downloaded.
      • setAltText

        public void setAltText​(java.lang.String altText)
        Parameters:
        altText - Text displayed when the image can't be downloaded.
      • getWrapText

        public java.lang.String getWrapText()
        Note : only supports 5 of the Microsoft Word Text Wrapping options. In line with text : This option is default. If no wrap option specified images will wrapped in line with text. Square : In order to use this property, wrap option should be "square". Top and Bottom : In order to use this property, wrap option should be "top-bottom". Behind Text : In order to use this property, wrap option should be "behind". In Front of Text : In order to use this property, wrap option should be "front".
        Returns:
        The wrapping mode of the text around the image.
      • setWrapText

        public void setWrapText​(java.lang.String wrapText)
        Note : only supports 5 of the Microsoft Word Text Wrapping options. In line with text : This option is default. If no wrap option specified images will wrapped in line with text. Square : In order to use this property, wrap option should be "square". Top and Bottom : In order to use this property, wrap option should be "top-bottom". Behind Text : In order to use this property, wrap option should be "behind". In Front of Text : In order to use this property, wrap option should be "front".
        Parameters:
        wrapText - The wrapping mode of the text around the image.
      • getTransparency

        public java.lang.String getTransparency()
        Returns:
        Transparency of the image followed by % e.g. : 80%.
      • setTransparency

        public void setTransparency​(java.lang.String transparency)
        Parameters:
        transparency - Transparency of the image followed by % e.g. : 80%.
      • getRotation

        public java.lang.Integer getRotation()
        Returns:
        Rotation of the image in degrees.
      • setRotation

        public void setRotation​(java.lang.Integer rotation)
        Parameters:
        rotation - Rotation of the image in degrees.
      • getTargetUrl

        public java.lang.String getTargetUrl()
        Returns:
        URL to jump to if the image is clicked.
      • setTargetUrl

        public void setTargetUrl​(java.lang.String targetUrl)
        Parameters:
        targetUrl - URL to jump to if the image is clicked.
      • getJSON

        public com.google.gson.JsonObject getJSON()
        Specified by:
        getJSON in class RenderElement
        Returns:
        JSONObject with the tags for this element for the Cloud Office Print server.
      • getTemplateTags

        public java.util.Set<java.lang.String> getTemplateTags()
        Specified by:
        getTemplateTags in class RenderElement
        Returns:
        An immutable set containing all available template tags this element can replace.