Class Image
- java.lang.Object
-
- com.cloudofficeprint.RenderElements.RenderElement
-
- com.cloudofficeprint.RenderElements.Images.Image
-
- Direct Known Subclasses:
ImageBase64
,ImageUrl
public abstract class Image extends RenderElement
-
-
Constructor Summary
Constructors Constructor Description Image()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAltText()
java.lang.Integer
getHeight()
com.google.gson.JsonObject
getJSON()
java.lang.Integer
getMaxHeight()
java.lang.Integer
getMaxWidth()
java.lang.Integer
getRotation()
java.lang.String
getTargetUrl()
java.util.Set<java.lang.String>
getTemplateTags()
java.lang.String
getTransparency()
java.lang.Integer
getWidth()
java.lang.String
getWrapText()
Note : only supports 5 of the Microsoft Word Text Wrapping options.void
setAltText(java.lang.String altText)
void
setHeight(java.lang.Integer height)
void
setMaxHeight(java.lang.Integer maxHeight)
void
setMaxWidth(java.lang.Integer maxWidth)
void
setRotation(java.lang.Integer rotation)
void
setTargetUrl(java.lang.String targetUrl)
void
setTransparency(java.lang.String transparency)
void
setWidth(java.lang.Integer width)
void
setWrapText(java.lang.String wrapText)
Note : only supports 5 of the Microsoft Word Text Wrapping options.-
Methods inherited from class com.cloudofficeprint.RenderElements.RenderElement
getName, getValue, setName, setValue
-
-
-
-
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 classRenderElement
- 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 classRenderElement
- Returns:
- An immutable set containing all available template tags this element can replace.
-
-