@Tag(name="scaleImage", bodyContent=EMPTY) public class ScaleImageTag extends BaseImageTag
parentContentNodeName, PROPERTIES_CONTENTTYPE_VALUE
Constructor and Description |
---|
ScaleImageTag() |
Modifier and Type | Method and Description |
---|---|
void |
cleanUp()
Set objects to null.
|
void |
doTag() |
protected String |
getFilename() |
protected boolean |
rescale(Content parentContentNode,
Content imageContentNode)
Deprecated.
since 5.6.
|
void |
setAllowOversize(boolean allowOversize)
Allow resizing images beyond their original dimensions?
|
void |
setImageContentNodeName(String imageContentNodeName)
The name of the new contentNode that will contain the scaled version of the image.
|
void |
setMaxHeight(int maxHeight)
The maximum height of the image in pixels.
|
void |
setMaxWidth(int maxWidth)
The maximum width of the image in pixels.
|
void |
setParentContentNodeName(String parentContentNodeName)
The name of the content node that contains the image to be copied and scaled.
|
void |
setParentNodeDataName(String parentNodeDataName)
The name of the data node that contains the image data to be copied and scaled.
|
convertHexToColor, convertHexToRGB, convertToSimpleString, createImageNode, getImageContentNode, getRequest
public void setMaxHeight(int maxHeight)
public void setMaxWidth(int maxWidth)
public void setAllowOversize(boolean allowOversize)
public void setParentContentNodeName(String parentContentNodeName)
setParentContentNodeName
in class BaseImageTag
public void setParentNodeDataName(String parentNodeDataName)
public void setImageContentNodeName(String imageContentNodeName)
setImageContentNodeName
in class BaseImageTag
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
@Deprecated protected boolean rescale(Content parentContentNode, Content imageContentNode)
public void cleanUp()
protected String getFilename()
getFilename
in class BaseImageTag
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.