|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.infoglue.deliver.util.graphics.AdvancedImageRenderer
public class AdvancedImageRenderer
Renders images and saves them.
| Constructor Summary | |
|---|---|
AdvancedImageRenderer()
Creates a new instance of tne NewImageRenderer and reads in properties from the property file if exists. |
|
| Method Summary | |
|---|---|
java.lang.String |
getImageFormatName()
Get the image format name, default is "png" if none is set. |
boolean |
hasAttribute(java.lang.CharSequence attributeName)
Check if this class has a specific attribute, name of attribute is case insensitive. ie. |
java.awt.image.BufferedImage |
renderImage(java.text.AttributedString attributedString,
java.util.Map renderAttributes)
Renders a text returnes the rendered picture. |
java.awt.image.BufferedImage |
renderImage(java.lang.CharSequence text,
java.util.Map renderAttributes)
Renders a text returnes the rendered picture. |
void |
setAlign(int align)
|
void |
setAttribute(java.lang.CharSequence attribute,
java.lang.CharSequence value)
Using reflection to set the fields corresponing to the attribute. tries to convert to the right object. |
void |
setBackgroundImage(java.awt.image.BufferedImage backgroundImage)
|
void |
setBackgroundImageUrl(java.lang.String backgroundImageUrl)
|
void |
setBackgroundImageURL(java.lang.String backgroundImageUrl)
|
void |
setBgColor(java.awt.Color bgColor)
|
void |
setFgColor(java.awt.Color fgColor)
|
void |
setFontName(java.lang.String fontName)
|
void |
setFontSize(int fontSize)
|
void |
setFontStyle(int fontStyle)
|
void |
setImageFormatName(java.lang.String imageFormatName)
|
void |
setImageType(int imageType)
|
void |
setMaxRows(int maxRows)
|
void |
setPad(int pad)
Sets all paddings to the same value. |
void |
setPadBottom(int padBottom)
|
void |
setPadLeft(int padLeft)
|
void |
setPadRight(int padRight)
|
void |
setPadTop(int padTop)
|
void |
setRenderHints(java.util.Map renderHints)
|
void |
setRenderWidth(int renderWidth)
|
void |
setTemplateImage(java.awt.image.BufferedImage templateImage)
|
void |
setTileBackgroundImage(int tileBackgroundImage)
|
void |
setTrimEdges(int trimEdges)
|
boolean |
writeImage(java.io.File file)
Write the rendered image to a file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AdvancedImageRenderer()
| Method Detail |
|---|
public boolean writeImage(java.io.File file)
file - the file of the image to create.
public java.awt.image.BufferedImage renderImage(java.lang.CharSequence text,
java.util.Map renderAttributes)
text - The text to be rendered.
public java.awt.image.BufferedImage renderImage(java.text.AttributedString attributedString,
java.util.Map renderAttributes)
attributedString - an attributed string, to enable multicolored or
similar texts.
public boolean hasAttribute(java.lang.CharSequence attributeName)
attributeName - name of the attribute to check
public void setAttribute(java.lang.CharSequence attribute,
java.lang.CharSequence value)
attribute - the field/property to setvalue - the value to set.public void setAlign(int align)
align - The align to set.public void setBackgroundImage(java.awt.image.BufferedImage backgroundImage)
backgroundImage - The backgroundImage to set.public void setBackgroundImageURL(java.lang.String backgroundImageUrl)
backgroundImageUrl - The backgroundImageUrl to set.public void setBgColor(java.awt.Color bgColor)
bgColor - The bgColor to set.public void setFgColor(java.awt.Color fgColor)
fgColor - The fgColor to set.public void setFontName(java.lang.String fontName)
fontName - The fontName to set.public void setFontSize(int fontSize)
fontSize - The fontSize to set.public void setFontStyle(int fontStyle)
fontStyle - The fontStyle to set.public void setImageType(int imageType)
imageType - The imageType to set.public void setPadBottom(int padBottom)
padBottom - The padBottom to set.public void setPadLeft(int padLeft)
padLeft - The padLeft to set.public void setPadRight(int padRight)
padRight - The padRight to set.public void setPad(int pad)
pad - The padRight, padLeft, padTop andpadBottom to set.public void setPadTop(int padTop)
padTop - The padTop to set.public void setRenderHints(java.util.Map renderHints)
renderHints - The renderHints to set.public void setRenderWidth(int renderWidth)
renderWidth - The renderWidth to set.public void setTemplateImage(java.awt.image.BufferedImage templateImage)
templateImage - The templateImage to set.public void setTileBackgroundImage(int tileBackgroundImage)
tileBackgroundImage - The tileBackgroundImage to set.public void setBackgroundImageUrl(java.lang.String backgroundImageUrl)
backgroundImageUrl - The backgroundImageUrl to set.public void setMaxRows(int maxRows)
maxRows - The maxRows to set.public void setTrimEdges(int trimEdges)
trimEdges - The trimEdges to set.public void setImageFormatName(java.lang.String imageFormatName)
imageFormatName - the format of the image. ie ( PNG, GIF);public java.lang.String getImageFormatName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||