@Tag(name="txt2img", bodyContent=EMPTY) public class TextToImageTag extends BaseImageTag
imageContentNodeName, parentContentNodeName, PROPERTIES_CONTENTTYPE_VALUE, PROPERTIES_EXTENSION_VALUE
Constructor and Description |
---|
TextToImageTag() |
Modifier and Type | Method and Description |
---|---|
void |
cleanUp()
Set objects to null.
|
void |
doTag() |
protected String |
getFilename() |
void |
setDivCSS(String divCSS)
The CSS class that will be applied to the div that contains these text images.
|
void |
setImageContentNodeName(String imageContentNodeName)
The name of the new contentNode to create, under which all image nodes will be saved.
|
void |
setParentContentNodeName(String parentContentNodeName)
The name of the parent of the new contentNode.
|
void |
setText(String text)
The text to be converted.
|
void |
setTextBackColor(String textBackColor)
The color of the background in hexadecimal format, e.g.
|
void |
setTextFontColor(String textFontColor)
The color of the text in hexadecimal format, e.g.
|
void |
setTextFontFace(String textFontFace)
The font face of the text, e.g.
|
void |
setTextFontSize(int textFontSize)
The size of the text, in points, e.g.
|
void |
setTextSplit(String textSplit)
The method used to split the text into sub-strings: 'none', 'words', or 'characters'.
|
void |
setUp()
Initialize settings.
|
convertHexToColor, convertHexToRGB, convertToSimpleString, createImageNode, getImageContentNode, getRequest
public void setText(String text)
public void setImageContentNodeName(String imageContentNodeName)
setImageContentNodeName
in class BaseImageTag
public void setParentContentNodeName(String parentContentNodeName)
setParentContentNodeName
in class BaseImageTag
public void setTextFontFace(String textFontFace)
public void setTextFontSize(int textFontSize)
public void setTextFontColor(String textFontColor)
public void setTextBackColor(String textBackColor)
public void setTextSplit(String textSplit)
public void setDivCSS(String divCSS)
protected String getFilename()
getFilename
in class BaseImageTag
info.magnolia.cms.taglibs.util.BaseImageTag#getFilename()
public void setUp()
public void doTag() throws javax.servlet.jsp.JspException
doTag
in interface javax.servlet.jsp.tagext.SimpleTag
doTag
in class javax.servlet.jsp.tagext.SimpleTagSupport
javax.servlet.jsp.JspException
public void cleanUp()
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.